<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>公司详情·思通投研·让数据驱动投资价值!</title>

	<link href="${pageContext.request.contextPath }/img/webLogoIcon.png" rel="shortcut icon">
    <link href="${pageContext.request.contextPath }/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/css/font-awesome.css" rel="stylesheet">

    <link href="${pageContext.request.contextPath }/css/animate.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/css/style.css" rel="stylesheet">
    
    <link href="${pageContext.request.contextPath }/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
    
    <!-- FooTable -->
    <link href="${pageContext.request.contextPath }/css/footable.core.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css" rel="stylesheet" />
    <link href="${pageContext.request.contextPath}/css/mypage.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/plugins/jqGrid/ui.jqgrid.css" rel="stylesheet">
    
    
    <style>
		.stock-table{
			width: 100%;
			line-height: 35px;
		}
		.stock-table td{
			text-align: initial;
			padding: 10px 10px 11px 10px;
		    word-break: break-all;
		    line-height: 1.6;
		    word-wrap: break-word;
		}
		.td-div{
			text-align: initial;
			padding: 10px 10px 11px 10px;
		    word-break: break-all;
		    line-height: 1.6;
		    word-wrap: break-word;
		}
		.b{
			background-color: #f5f5f6;
		}
		.table td{
			border: 1px #E7EAEC;
		}
		.table1,.table1 tr th, .table1 tr td { 
			border:1px solid #E7EAEC;
			padding: 8px;
			text-align: center;
    		table-layout: fixed;
		}
		.summary{
		    margin: 10px 0 20px;
		    color: #333;
		    line-height: 150%;
		}
		
		.summary p {
	        margin: 15px 0;
		    margin-left: 10px;
		    margin-right: 10px;
		}
		
		.p_div {
		    line-height: 22px;
		    text-align: justify;
		    text-justify: inter-ideograph;
		}
		.sp123{
		    font: 14px '宋体';
		}
		.ui-jqgrid .ui-jqgrid-bdiv{ overflow-y: hidden; }	
			.divcss5-right{width:320px; height:120px;border:1px solid #F00;float:right} 
			
		.stockChange{
			height: 300px;		
		}
		
		.ui-state-default{
			display:none;
		}
		.ibox-content2{
			    background-color: #ffffff;
    color: inherit;
    padding: 15px 20px 20px 20px;
    border-color: #e7eaec;
    border-image: none;
    border-style: solid solid none;
    border-width: 0px 0;
		}
		.info-img{
			width: 100px;
		    height: 100px;
		    border: 2px solid #ddd;
		    padding: 5px;
		    background: #fff;
		    margin-right: 15px;
		}
		.companyInfo{
			table-layout:fixed;
		}
	</style>
	
	
</head>

<body>
	<div id="wrapper">
		<nav class="navbar-default navbar-static-side" role="navigation">
        <%request.setAttribute("LEFT", "listed-company");%>
        <%@include file="components/left.jsp" %>
    </nav>

        <div id="page-wrapper" class="gray-bg">
        <div class="row border-bottom" style="margin-bottom: 20px;">
        <jsp:include page="head.jsp" flush="true" />
        </div>
        
        <div class="row wrapper border-bottom white-bg page-heading" style="padding: 0 10px 19px 10px;">
     	<form  action="optionalStockSearch" method="get">
            <div class="col-lg-9">
                 <h2>个股详情</h2>
        		 <ol class="breadcrumb">
                	<li class="nav-main1">
                		<a href="${pageContext.request.contextPath}/admin/tosystem_overview">主页</a>
                	</li>
                	<li class="nav-main2" >
                		<c:if test="${not empty resultUrl}">
                		<a href="${pageContext.request.contextPath}/${resultUrl }${plate_code}" id="navigation1" >${seedName}</a>
                	</c:if>
                	<c:if test="${empty resultUrl}">
                		<a id="navigation1" >${seedName}</a>
                	</c:if>
                	</li>
                	<li class="active">
                		<a>${simplename}</a>
                	</li>
               	</ol>
            </div>
            <%-- <div class="input-group" style="margin-top: 30px;">
                <input type="text" placeholder="请输入股票简称或股票代码" name="search" class="form-control input-lg" style="height:30px;">
                <div class="input-group-btn">
                    <button class="btn btn-sm btn-primary" type="submit" style="height:30px;font-size:15px;"  href="${pageContext.request.contextPath}/optional/optionalStockSearch">搜索
                        
                    </button>
                </div>
            </div> --%>
        </form>     
    </div>
    <div class="wrapper wrapper-content animated fadeInRight">
			<div class="row">
				<div class="col-lg-12">
					<div class="ibox float-e-margins">
						<div class="ibox-content2 text-center p-md">
									<div style="display: flex;">
										<c:if test="${stock.logo != '' && stock.logo != null }">
											<img alt="" src="${stock.logo }" class="info-img">
										</c:if>
										<c:if test="${stock.logo == '' || stock.logo == null }">
											<img alt="" src="/spider-factory/img/webLogoIcon.png" class="info-img">
										</c:if>
										<div style="line-height: 35px;">
											
											<table>
												<tbody>
													<tr><td><span title="${stock.name }" style="color: black;font-size: 20px;font-family: cursive;">${stock.name }</span></td></tr>
													<tr><td style="float: left;">成立日期: <span>${fn:substring(stock.establish_time,0,10) }</span></td></tr>
													<tr><td style="float: left;">注册资本: <span>${stock.registered_capital_str }</span></td></tr>
												</tbody>
											</table>
										</div>
									</div>
								<div class="header-content">
										<table class="stock-table">
											<tbody>
												<tr>
													<td>官网:<strong><a target="_blank" href="${stock.website }">${stock.website }</a></strong></td>
													<td>法人:<strong>${stock.legal_representative }</strong></td>
													<td>经营状态:<strong>${stock.status }</strong></td>
													<td>企业类型:<strong>${stock.enterprise_type }</strong></td>
												</tr>
												
												<tr>
													<td>省份:<strong>${stock.province }</strong></td>
													<td>城市:<strong>${stock.city }</strong></td>
													<td>统一社会信用代码:<strong>${stock.uniform_social_credit_code }</strong></td>
													<td>组织机构代码:<strong>${stock.organization_code }</strong></td>
												</tr>
												
												<tr>
													<td>工商注册号:<strong>${stock.registration_number }</strong></td>
													<td>纳税人识别号:<strong>${stock.taxpayer_identification_number }</strong></td>
													<td>所属行业:<strong>${stock.industry_involved }</strong></td>
													<td>营业期限:<strong>${stock.business_term }</strong></td>
												</tr>
												
												<tr>
													<td>企业地址:<strong>${stock.address }</strong></td>
													<td>注册地址:<strong>${stock.register_adress }</strong></td>
													<td>登记机关:<strong>${stock.register_organization }</strong></td>
												</tr>
											</tbody>
										</table>
										<div class="td-div">经营范围:<strong>${stock.business_scope }</strong></div>
										<div class="td-div">公司简介:<strong>${stock.companyInfo }</strong></div>
									</div>
							</div>
						<!-- 基本信息结束 -->
						<div >
						<div class="tabs-container" style="margin-top: 2px;">
							<div style="background-color: #FFFFFF;">
                        <ul class="nav nav-tabs">
                            <li class="active" style="width: 14.28%;text-align:center"><a data-toggle="tab" href="#tab-1"> 详细信息</a></li>
                            <li id="marketAnalyze" onclick="marketAnalyze()" class="" style="width: 14.28%;text-align:center"><a data-toggle="tab" href="#tab-2">市场分析</a></li>
                            <li id="lawsuit" onclick="lawsuit()" class="" style="width: 14.28%;text-align:center"><a data-toggle="tab" href="#tab-3">法律诉讼</a></li>
                            <li id="marketInfo" onclick="marketInfo()" class="" style="width: 14.28%;text-align:center"><a data-toggle="tab" href="#tab-4">上市信息</a></li>
                            <li id="knowledge" onclick="knowledge()" class="" style="width: 14.29%;text-align:center"><a data-toggle="tab" href="#tab-6">知识产权</a></li>
                            <li id="finance_analyze" onclick="finance_analyze()" class="" style="width: 14.3%;text-align:center"><a data-toggle="tab" href="#tab-7">财务分析</a></li>
                        </ul>
                        </div>
                        <div class="tab-content">
                            <div id="tab-1" class="tab-pane active">
                                <div class="panel-body">
                                <h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;工商注册</h4>
                                <div style="width: 100%;">
                           			
                           			<table class="table table-hover table1">
                                <tbody>
                                	<tr>
	                                	<td>法定代表人</td>
	                                    <td>陈四清</td>
	                                    <td>经营状态</td>
	                                    <td>开业</td>
	                                </tr>
	                                <tr>
	                                	<td>注册资本</td>
	                                    <td>35,640,625.7089万(元)</td>
	                                    <td>实缴资本</td>
	                                    <td>-</td>
	                                </tr>
	                                <tr>
	                                	<td>曾用名</td>
	                                    <td>中国工商银行</td>
	                                    <td>所属行业</td>
	                                    <td>货币金融服务</td>
	                                </tr>
	                                <tr>
	                                	<td>统一社会信用代码</td>
	                                    <td>91100000100003962T</td>
	                                    <td>纳税人识别号</td>
	                                    <td>91100000100003962T</td>
	                                </tr>
	                                <tr>
	                                	<td>工商注册号</td>
	                                    <td>100000000003965</td>
	                                    <td>组织机构代码</td>
	                                    <td>100003962</td>
	                                </tr>
	                                <tr>
	                                	<td>登记机关</td>
	                                    <td>北京市工商行政管理局</td>
	                                    <td>成立日期</td>
	                                    <td>1985-11-22</td>
	                                </tr>
	                                <tr>
	                                	<td>企业类型</td>
	                                    <td>股份有限公司(上市、国有控股)</td>
	                                    <td>营业期限</td>
	                                    <td>1985-11-22 至 无固定期限</td>
	                                </tr>
	                                <tr>
	                                	<td>行政区划</td>
	                                    <td>北京市西城区</td>
	                                    <td>审核/年检日期</td>
	                                    <td>2019-06-19</td>
	                                </tr>
	                                <tr>
	                                	<td>注册地址</td>
	                                    <td colspan="3" style="width:282px">北京市西城区复兴门内大街55号</td>
	                                </tr>
	                                <tr>
	                                	<td>经营范围</td>
	                                    <td colspan="3" style="width:282px">办理人民币存款、贷款；同业拆借业务；国内外结算；办理票据承兑、贴现、转贴现；各类汇兑业务；代理资金清算；提供信用证服务及担保；代理销售业务；代理发行、代理承销、代理兑付政府债券；代收代付业务；代理证券资金清算业务（银证转账）；保险兼业代理业务；代理政策性银行、外国政府和国际金融机构贷款业务；保管箱服务；发行金融债券；买卖政府债券、金融债券；证券投资基金、企业年金托管业务；企业年金受托管理服务、年金账户管理服务；开放式基金的注册登记、认购、申购和赎回业务；资信调查、咨询、见证业务；贷款承诺；企业、个人财务顾问服务；组织或参加银团贷款；外汇存款；外汇贷款；外币兑换；出口托收及进口代收；外汇票据承兑和贴现；外汇借款；外汇担保；发行、代理发行、买卖或代理买卖股票以外的外币有价证券；自营、代客外汇买卖；外汇金融衍生业务；银行卡业务；电话银行、网上银行、手机银行业务；办理结汇、售汇业务；经国务院银行业监督管理机构批准的其他业务。（企业依法自主选择经营项目，开展经营活动；依法须经批准的项目，经相关部门批准后依批准的内容开展经营活动；不得从事本市产业政策禁止和限制类项目的经营活动。）</td>
	                                </tr>
								</tbody>
                            </table>
                           		</div>
                           		<h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;主要人员</h4>
                           		<div style="width: 100%;" id="main_person_show">
                           			
                           	<table class="table table-hover table1">
                                <thead>
                                <tr>
                                	<th>序号</th>
                                	<th>姓名</th>
                                    <th>职务	</th>
                                    <th>操作	</th>
                                </tr>
                                </thead>
                                <tbody id="main_person">
								</tbody>
                            </table>
                           		</div>
                           		
                           		
                           		<h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;联系方式</h4>
                           		<div style="width: 100%;">
                           			
                           			<table class="table table-hover table1">
                                <tbody id="sdgd">
                                	<tr>
	                                	<td>联系电话</td>
	                                    <td>010-66108608</td>
	                                    <td>电子邮箱</td>
	                                    <td>ir@icbc.com.cn</td>
	                                </tr>
	                                <tr>
	                                	<td>传真</td>
	                                    <td>010-66107571</td>
	                                    <td>公司网址</td>
	                                    <td>www.icbc.com.cn,www.icbc-ltd.com</td>
	                                </tr>
	                                <tr>
	                                	<td>办公地址</td>
	                                    <td colspan="3" style="width:283px">北京市西城区复兴门内大街55号</td>
	                                </tr>
	                                <tr>
	                                	<td>注册地址</td>
	                                    <td colspan="3" style="width:283px">北京市西城区复兴门内大街55号</td>
	                                </tr>
								</tbody>
                            </table>
                           		</div>
                           		<h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;行政许可</h4>
                           		<div style="width: 100%;" id="administrative_permission_show">
                           			
                           			<table class="table table-hover table1">
                           			<thead>
                           			<tr>
	                                	<th>序号</th>
	                                    <th>行政许可证号</th>
	                                    <th>许可名称</th>
	                                    <th>有效期自</th>
	                                    <th>有效期至</th>
	                                    <th>许可机关</th>
	                                    <th>操作</th>
	                                </tr>
                           			</thead>
                                <tbody id="administrative_permission">
								</tbody>
                            </table>
                           		</div>
                           		
                           		<h4 style="margin-top: 2%;" id="item3"><i class="fa fa-circle-o"></i>&nbsp;公司高管</h4>
                                    
                           		<div style="width: 100%;" id="senior_show">
                           			
                           		<table class="table table-hover table1">
                                <thead>
                                <tr>
									<th>序号</th>
                                    <th>姓名</th>
                                    <th>性别</th>
                                    <th>年龄</th>
                                    <th>学历</th>
                                    <th>职位</th>
                                    <th>任职时间</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody id="senior">
                                </tbody>
                            	</table>
                           		</div>
                           		 <h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;十大股东</h4>
                                    
                                    <div style="width: 100%;">
                           			
                           			<table class="table table-hover table1">
                                <thead>
                                <tr>
                                	<th>序号</th>
                                	<th>股东名称</th>
                                	<th>股份类型</th>
                                	<th>持股数</th>
                                	<th>持股变化（股）</th>
                                	<th>占总股本比例</th>
                                	<th>增减情况</th>
                                	<!-- <th>股东名称	</th>
                                    <th>股东类型	</th>
                                    <th>持股数(股)</th>
                                    <th>占总流通股本持股比例</th>
                                    <th>增减(股)</th>
                                    <th>变动比例</th> -->
                                </tr>
                                </thead>
                                <tbody id="sdgd">
                                	<tr>
	                                	<td>-</td>
	                                    <td>-</td>
	                                    <td>-</td>
	                                    <td>-</td>
	                                    <td>-</td>
	                                    <td>-</td>
	                                    <td>-</td>
	                                </tr>
								</tbody>
                            </table>
                           		</div>
                           		<h4 style="margin-top: 2%;" id="item3"><i class="fa fa-circle-o"></i>&nbsp;分支机构</h4>
                           		<div style="width: 100%;" id="branchFirm_show">
                           			
                           		<table class="table table-hover table1">
                                <thead>
                                <tr>
									<th>序号</th>
                                    <th>企业名称</th>
                                    <th>负责人</th>
                                    <th>成立日期</th>
                                    <th>状态</th>
                                </tr>
                                </thead>
                                <tbody id="branchFirm">
                                </tbody>
                            	</table>
                           		</div>
                           		<h4 style="margin-top: 2%;" id="item4"><i class="fa fa-circle-o"></i>&nbsp;核心题材</h4>
                           		<div style="border: 1px solid #E7EAEC;" id="coreTheme_show">
                           			<div id="coreTheme">
							        </div>
                           		</div>
                                </div>
                            </div>
                            <div id="tab-2" class="tab-pane">
                                <div class="panel-body">
                                <h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;同业地位</h4>
                           		<h3 style="text-align:center;" class="my-4">同行业的资金投入规模对标</h3>
                           		<div class="row">
                           			<div id="industryStatus" class="col-lg-6" style="width: 600px;height:400px;"></div>
                           			<div id="industryStatus2" class="col-lg-6" style="width: 600px;height:400px;"></div>
                           		</div>
                           		<h3 style="text-align:center;margin-top:70px;">全国范围同业的资金地域分布对标</h3>
                           		<div class="row">
                           			<div id="industryStatus3" style="width: 1200px;height:600px;"></div>
                           		</div>
								<h4 style="margin-top: 5%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;客户</h4>
                           		<div style="width: 100%;">
                           			
                           			<table class="table table-hover table1">
                           			<thead>
                           				<tr>
	                                	<th>序号</th>
	                                    <th>客户</th>
	                                    <th>销售占比</th>
	                                    <th>销售金额（万元）</th>
	                                    <th>报告期</th>
	                                    <th>数据来源</th>
	                                    <th>关联关系</th>
	                                </tr>
                           			</thead>
                                <tbody id="sdgd">
	                                <tr>
	                                	<td>1</td>
	                                    <td>宇鑫（厦门）货币兑换股份有限公司</td>
	                                    <td>6.02%</td>
	                                    <td>1210.80</td>
	                                    <td>2019-04-18</td>
	                                    <td>客户公告</td>
	                                    <td>非关联方</td>
	                                </tr>
	                                <tr>
	                                	<td>2</td>
	                                    <td>宇鑫（厦门）货币兑换股份有限公司</td>
	                                    <td>6.02%</td>
	                                    <td>1210.80</td>
	                                    <td>2019-04-18</td>
	                                    <td>客户公告</td>
	                                    <td>非关联方</td>
	                                </tr>
	                                <tr>
	                                	<td>3</td>
	                                    <td>宇鑫（厦门）货币兑换股份有限公司</td>
	                                    <td>6.02%</td>
	                                    <td>1210.80</td>
	                                    <td>2019-04-18</td>
	                                    <td>客户公告</td>
	                                    <td>非关联方</td>
	                                </tr>
	                                <tr>
	                                	<td>4</td>
	                                    <td>宇鑫（厦门）货币兑换股份有限公司</td>
	                                    <td>6.02%</td>
	                                    <td>1210.80</td>
	                                    <td>2019-04-18</td>
	                                    <td>客户公告</td>
	                                    <td>非关联方</td>
	                                </tr>
	                                <tr>
	                                	<td>5</td>
	                                    <td>宇鑫（厦门）货币兑换股份有限公司</td>
	                                    <td>6.02%</td>
	                                    <td>1210.80</td>
	                                    <td>2019-04-18</td>
	                                    <td>客户公告</td>
	                                    <td>非关联方</td>
	                                </tr>
								</tbody>
                            </table>
                           		</div>
                           		<h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;对外投资</h4>
                           		<div style="width: 100%;" id="invest_show">
                           			
                           			<table class="table table-hover table1">
                           			<thead>
                           			<tr>
	                                	<th>序号</th>
	                                    <th>被投资企业名称</th>
	                                    <th>被投资企业法定代表人</th>
	                                    <th>成立日期</th>
	                                    <th>投资数额</th>
	                                    <th>投资比例</th>
	                                    <th>经营状态</th>
	                                </tr>
                           			</thead>
	                                <tbody id="invest">
									</tbody>
                            </table>
                           		</div>
                           		<h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;控股企业</h4>
                           		<div style="width: 100%;" id="controlShare_show">
                           			
                           			<table class="table table-hover table1">
                           			<thead>
                           			<tr>
	                                	<th>序号</th>
	                                    <th>控股企业名称</th>
	                                    <th>控股企业法定代表人</th>
	                                    <th>成立日期</th>
	                                    <th>投资数额</th>
	                                    <th>投资比例</th>
	                                    <th>经营状态</th>
	                                </tr>
                           			</thead>
	                                <tbody id="controlShare">
									</tbody>
                            </table>
                           		</div>
                           		<h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;融资历程</h4>
                           		<div style="width: 100%;">
                           			
                           			<table class="table table-hover table1">
                           			<thead>
                           			<tr>
	                                	<th>序号</th>
	                                    <th>披露日期</th>
	                                    <th>交易金额</th>
	                                    <th>融资轮次</th>
	                                    <th>估值</th>
	                                    <th>比例</th>
	                                    <th>投资方</th>
	                                    <th>新闻来源	</th>
	                                </tr>
                           			</thead>
                                <tbody id="sdgd">
	                                <tr>
	                                	<td>1</td>
	                                    <td>2016-03-31</td>
	                                    <td>未披露</td>
	                                    <td>定向增发</td>
	                                    <td>-</td>
	                                    <td>-</td>
	                                    <td>中国人寿</td>
	                                    <td>-</td>
	                                </tr>
	                                <tr>
	                                	<td>2</td>
	                                    <td>2016-03-31</td>
	                                    <td>未披露</td>
	                                    <td>定向增发</td>
	                                    <td>-</td>
	                                    <td>-</td>
	                                    <td>中国人寿</td>
	                                    <td>-</td>
	                                </tr>
	                                <tr>
	                                	<td>3</td>
	                                    <td>2016-03-31</td>
	                                    <td>未披露</td>
	                                    <td>定向增发</td>
	                                    <td>-</td>
	                                    <td>-</td>
	                                    <td>中国人寿</td>
	                                    <td>-</td>
	                                </tr>
								</tbody>
                            </table>
                           		</div>
                           		<h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;供应商</h4>
                           		<div style="width: 100%;">
                           			
                           			<table class="table table-hover table1">
                           			<thead>
                           			<tr>
	                                	<th>序号</th>
	                                    <th>供应商</th>
	                                    <th>采购占比</th>
	                                    <th>采购金额（万元）</th>
	                                    <th>报告期</th>
	                                    <th>数据来源</th>
	                                    <th>关联关系</th>
	                                </tr>
                           			</thead>
                                <tbody id="sdgd">
	                                <tr>
	                                	<td>1</td>
	                                    <td>江西国光商业连锁股份有限公司</td>
	                                    <td>0.13%</td>
	                                    <td>261.50</td>
	                                    <td>2020-06-17</td>
	                                    <td>供应商公告</td>
	                                    <td>-</td>
	                                </tr>
	                                <tr>
	                                	<td>2</td>
	                                    <td>江西国光商业连锁股份有限公司</td>
	                                    <td>0.13%</td>
	                                    <td>261.50</td>
	                                    <td>2020-06-17</td>
	                                    <td>供应商公告</td>
	                                    <td>-</td>
	                                </tr>
	                                <tr>
	                                	<td>3</td>
	                                    <td>江西国光商业连锁股份有限公司</td>
	                                    <td>0.13%</td>
	                                    <td>261.50</td>
	                                    <td>2020-06-17</td>
	                                    <td>供应商公告</td>
	                                    <td>-</td>
	                                </tr>
	                                <tr>
	                                	<td>4</td>
	                                    <td>江西国光商业连锁股份有限公司</td>
	                                    <td>0.13%</td>
	                                    <td>261.50</td>
	                                    <td>2020-06-17</td>
	                                    <td>供应商公告</td>
	                                    <td>-</td>
	                                </tr>
	                                <tr>
	                                	<td>5</td>
	                                    <td>江西国光商业连锁股份有限公司</td>
	                                    <td>0.13%</td>
	                                    <td>261.50</td>
	                                    <td>2020-06-17</td>
	                                    <td>供应商公告</td>
	                                    <td>-</td>
	                                </tr>
								</tbody>
                            </table>
                           		</div>

                                </div>
                            </div>
                            <div id="tab-3" class="tab-pane">
                                <div class="panel-body">
                                <h4 id="item2"><i class="fa fa-circle-o"></i>&nbsp;立案信息</h4>
                                <div id="lawsuit_registerInfo_show">
                                    	<table class="table table-hover table1">
                                    		<thead>
                                    			<tr>
                                    				<th>序号</th>
                                    				<th>立案日期</th>
                                    				<th>案号</th>
                                    				<th>公诉人/原告/上诉人/申请人</th>
                                    				<th>被告人/被告/被上诉人/被申请人</th>
                                    			</tr>
                                    		</thead>
                                    		<tbody id="lawsuit_registerInfo">
                                    		</tbody>
                                    	</table>
                                    </div>
                                <h4 id="item2" style="margin-top:50px;"><i class="fa fa-circle-o"></i>&nbsp;开庭公告</h4>
                                <div id="start_announcement_show">
                                    	<table class="table table-hover table1">
                                    		<thead>
                                    			<tr>
                                    				<th>序号</th>
                                    				<th>开庭日期</th>
                                    				<th>案号</th>
                                    				<th>案由</th>
                                    				<th>公诉人/原告/上诉人/申请人</th>
                                    				<th>被告人/被告/被上诉人/被申请人</th>
                                    			</tr>
                                    		</thead>
                                    		<tbody id="start_announcement">
                                    		</tbody>
                                    	</table>
                                    </div>
                                <h4 id="item2" style="margin-top:50px;"><i class="fa fa-circle-o"></i>&nbsp;法院公告</h4>
                                <div id="tribunal_announcement_show">
                                    	<table class="table table-hover table1">
                                    		<thead>
                                    			<tr>
                                    				<th>序号</th>
                                    				<th>公告日期</th>
                                    				<th>公告类型</th>
                                    				<th>案由</th>
                                    				<th>当事人</th>
                                    				<th>受理法院</th>
                                    				<th>操作</th>
                                    			</tr>
                                    		</thead>
                                    		<tbody id="tribunal_announcement">
                                    		</tbody>
                                    	</table>
                                    </div>
                                	<h4 id="item2" style="margin-top:50px;"><i class="fa fa-circle-o"></i>&nbsp;裁判文书</h4>
                                	<div id="judgment_show">
                                    	<table class="table table-hover table1">
                                    		<thead>
                                    			<tr>
                                    				<th>序号</th>
                                    				<th>日期</th>
                                    				<th>案件名称</th>
                                    				<th>案由</th>
                                    				<th>案号</th>
                                    				<th>操作</th>
                                    			</tr>
                                    		</thead>
                                    		<tbody id="judgment">
                                    		</tbody>
                                    	</table>
                                    </div>
                                    <h4 id="item2" style="margin-top:50px;"><i class="fa fa-circle-o"></i>&nbsp;经营异常</h4>
                                    <div id="run_exception_show">
                                    	<table class="table table-hover table1">
                                    		<thead>
                                    			<tr>
                                    				<th>序号</th>
                                    				<th>原因</th>
                                    				<th>列入决定机关</th>
                                    				<th>列入日期</th>
                                    				<th>移出原因</th>
                                    				<th>移出决定机关</th>
                                    				<th>移出日期</th>
                                    			</tr>
                                    		</thead>
                                    		<tbody id="run_exception">
                                    		</tbody>
                                    	</table>
                                    </div>
									<h4 id="item2" style="margin-top:50px;"><i class="fa fa-circle-o"></i>&nbsp;行政处罚</h4>
									<div id="administration_punish_show">
										<table class="table table-hover table1">
                                    		<thead>
                                    			<tr>
                                    				<th>序号</th>
                                    				<th>处罚决定日期</th>
                                    				<th>决定书文号</th>
                                    				<th>行政处罚内容</th>
                                    				<th>决定机关</th>
                                    				<th>操作</th>
                                    				<!-- <th>决定文书号</th>
                                    				<th>名称</th>
                                    				<th>处罚种类</th>
                                    				<th>处罚事由</th>
                                    				<th>处罚依据</th>
                                    				<th>处罚结果</th>
                                    				<th>处罚公开日期</th>
                                    				<th>处罚状态</th>
                                    				<th>决定机关</th>
                                    				<th>决定日期</th> -->
                                    			</tr>
                                    		</thead>
                                    		<tbody id="administration_punish">
                                    		</tbody>
                                    	</table>
									</div>
									<h4 id="item2" style="margin-top:50px;"><i class="fa fa-circle-o"></i>&nbsp;股权出质</h4>
									<div id="stock_rights_show">
										<table class="table table-hover table1">
                                    		<thead>
                                    			<tr>
                                    				<th>序号</th>
                                    				<th>出质人</th>
                                    				<th>出质人证件号码</th>
                                    				<th>股权出质数额</th>
                                    				<th>股权出质目标公司</th>
                                    				<th>质权人</th>
                                    				<th>质权人证件号码</th>
                                    				<th>股权出质登记日期</th>
                                    				<th>状态</th>
                                    				<th>备注</th>
                                    			</tr>
                                    		</thead>
                                    		<tbody id="stock_rights">
                                    		</tbody>
                                    	</table>
									</div>
									<h4 id="item2" style="margin-top:50px;"><i class="fa fa-circle-o"></i>&nbsp;失信被执行人</h4>
									<div id="execution_person_show">
										<table class="table table-hover table1">
                                    		<thead>
                                    			<tr>
                                    				<th>序号</th>
                                    				<th>案号</th>
                                    				<th>立案日期</th>
                                    				<th>被执行人</th>
                                    				<th>身份证号/组织机构代码</th>
                                    				<th>执行标的</th>
                                    				<th>执行法院</th>
                                    				<th>执行状态</th>
                                    				<th>操作</th>
                                    			</tr>
                                    		</thead>
                                    		<tbody id="execution_person">
                                    		</tbody>
                                    	</table>
									</div>
                                </div>
                            </div>
                            <div id="tab-4" class="tab-pane">
                                <div class="panel-body" >
                                <!-- <div id="stockChange" class="stockChange" style="height:300px;width:auto;"></div> -->
                                <div class="ibox-content2 text-center p-md">
										<h2 class="pull-left"><strong>${stockInfo.name }</strong>&nbsp;&nbsp;&nbsp;<span style="font-size:.7em;">${stockInfo.code }</span></h2>
										<table class="stock-table">
											<tr>
												<td>地区: ${stockInfo.stock_market=="sh" ? "SH" : "SZ" }</td>
												<td>时间: ${stockInfo.date }</td>
												<td>振幅: ${stockInfo.amplitude }%</td>
												<td>开盘价格: ${stockInfo.opening_price } </td>
												<td>收盘价格: 
													<c:if test="${stockInfo.closing_price>stockInfo.opening_price }">
														<strong style="color:green;">${stockInfo.closing_price }</strong>
													</c:if>
													<c:if test="${stockInfo.closing_price<stockInfo.opening_price }">
														<strong style="color:red;">${stockInfo.closing_price }</strong>
													</c:if>
													<c:if test="${stockInfo.closing_price=stockInfo.opening_price }">
														<strong>${stockInfo.closing_price }</strong>
													</c:if>
												</td>
												<td>最低价格: <strong>${stockInfo.lowest_price }</strong></td>
											</tr>
											<tr>
												<td>最高价格: <strong>${stockInfo.highest_price }</strong></td>
												<td>涨停: ${stockInfo.daily_limit }</td>
												<td>换手率: <strong>${stockInfo.change_hands }</strong></td>
												<td>成交量: <strong>${stockInfo.volume }</strong></td>
												<td>市盈: ${stockInfo.market_earnings }</td>
												<td>总市值: <strong id="total_value"></strong></td>
											</tr>
											<tr>
												<td>跌停: ${stockInfo.lower_limit }</td>
												<td>量比: 
													<c:if test="${stockInfo.percent>\"1\" }">
														<strong style="color:green;">${stockInfo.percent }</strong>
													</c:if>
													<c:if test="${stockInfo.percent<\"1\" }">
														<strong style="color:red;">${stockInfo.percent }</strong>
													</c:if>
													<c:if test="${stockInfo.percent=\"1\" }">
														<strong>${stockInfo.percent }</strong>
													</c:if>
												</td>
												<td>成交额: <strong id="turnover"></strong></td>
												<td>流通市值: <span id="circulation_market_value"></span></td>
												<td></td>
												<td></td>
											</tr>
										</table>
										
										<div id="main" style="width:1200px;height:400px"></div> 
									</div>
									<h4 id="item2"><i class="fa fa-circle-o"></i>&nbsp;企业图谱</h4>
                                    <div id="firmAtlas" style="width:1200px;height:600px;"></div>
                                    <h4 id="item2"><i class="fa fa-circle-o"></i>&nbsp;最新资讯</h4>
                                    <ul id="stockNwes">
                                    </ul>
                                    <div class="text-center" align="center">
			                            <div class="box box1" data-kind ="b1"></div>
			                        </div>
			                        <h4><i class="fa fa-circle-o"></i>&nbsp;证券信息</h4>
			                        <div class="table-responsive" id="security_info_show">
						                <table class="table table-hover table1">
			                                <tbody id="security_info">
			                                </tbody>
			                            </table>
						            </div>
						            <h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;违规处理</h4>
						            <div style="width: 100%;" id="illegalHandle_show">
                           			
                           			<table class="table table-hover table1">
                           			<thead>
                           				<tr>
                           					<th>序号</th>
                           					<th>公告日期</th>
                           					<th>处罚对象</th>
                           					<th>处罚类型</th>
                           					<th>处罚金额（万元）</th>
                           					<th>处分类型</th>
                           					<th>处分措施</th>
                           					<th>处理人</th>
                           					<th>类型</th>
                           					<th>操作</th>
                           				</tr>
                           			</thead>
                                <tbody id="illegalHandle">
								</tbody>
                            </table>
                           		</div>
						            <h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;配股明细</h4>
						            <div style="width: 100%;" id="allotShare_detail_show">
                           			
                           			<table class="table table-hover table1">
                           			<thead>
                           				<tr>
                           					<th>序号</th>
                           					<th>公告日期</th>
                           					<th>配股价格(元)</th>
                           					<th>实际配股总额(万元)</th>
                           					<th>实际募集总额(万元)</th>
                           					<th>股权登记日</th>
                           					<th>除权基准日</th>
                           					<th>配股方案</th>
                           				</tr>
                           			</thead>
                                <tbody id="allotShare_detail">
								</tbody>
                            </table>
                           		</div>
						            <h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;发行信息</h4>
						            <div style="width: 100%;" id="issue_info_show">
                           			
                           			<table class="table table-hover table1">
                                <tbody id="issue_info">
								</tbody>
                            </table>
                           		</div>
                           		<h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;增发信息</h4>
						            <div style="width: 100%;" id="additional_info_show">
                           			
                           			<table class="table table-hover table1">
                           			<thead>
	                                <tr>
	                                	<th>序号</th>
	                                	<th>增发日期</th>
	                                	<th>实际增发数量(万股)</th>
	                                	<th>实际募集净额(万元)</th>
	                                	<th>增发价格(元/股)</th>
	                                	<th>发行方式</th>
	                                	<th>股权登记日</th>
	                                	<th>增发上市日</th>
	                                	<th>资金到帐日</th>
	                                </tr>
	                                </thead>
                                <tbody id="additional_info">
								</tbody>
                            </table>
                           		</div>
						            <h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;高管持股变动</h4>
						            <div style="width: 100%;" id="manage_shareChange_show">
                           			
                           			<table class="table table-hover table1">
                                <thead>
                                <tr>
                                	<th>序号</th>
                                	<th>变更日期</th>
                                	<th>变动人</th>
                                	<th>职位</th>
                                	<th>变动股数</th>
                                	<th>结存股数</th>
                                	<th>股份变动途径</th>
                                </tr>
                                </thead>
                                <tbody id="manage_shareChange">
								</tbody>
                            </table>
                           		</div>
						            <h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;股本结构</h4>
						             <div style="width: 100%;" id="shareCapital_show">
                           			
                           			<table class="table table-hover table1">
                                <thead>
                                <tr>
                                	<th>序号</th>
                                	<th>时间</th>
                                	<th>总股本(万股)</th>
                                	<th>已流通股份(万股)</th>
                                	<th>已上市流通A股(万股)</th>
                                	<th>已上市流通B股(万股)</th>
                                	<th>流通受限股份(万股)</th>
                                	<th>其他内资持股(受限)(万股)</th>
                                	<th>境内自然人持股(受限)(万股)</th>
                                	<th>操作</th>
                                </thead>
                                <tbody id="shareCapital">
								</tbody>
                            </table>
                           		</div>
						            <h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;股东
						            	<div class="form-group" style="float: right;width: 150px;">
											<select onchange="shareholderByDate()" class="form-control" id="filterDate2">
											</select>
										</div>
						            </h4>
						             <div style="width: 100%;" id="shareholder_show">
                           			
                           			<table class="table table-hover table1">
                                <thead>
                                <tr>
                                	<th>序号</th>
                                	<th>发起人/股东</th>
                                	<th>股份类型</th>
                                	<th>持股数量</th>
                                	<th>持股比例</th>
                                	<th>增减（股）</th>
                                	<th>变动比例</th>
                                	<th>时间</th>
                                	<th>股东类型</th>
                                </tr>
                                </thead>
                                <tbody id="shareholder">
								</tbody>
                            </table>
                           		</div>
						            <h4 style="margin-top: 2%;" id="item2"><i class='fa fa-circle-o'></i>&nbsp;十大流通股东
						            	<div class="form-group" style="float: right;width: 150px;">
											<select onchange="circulate_shareholderByDate()" class="form-control" id="filterDate">
											</select>
										</div>
						            </h4>
                                    
                                    <div style="width: 100%;" id="circulate_shareholder_show">
                           			
                           			<table class="table table-hover table1">
                                <thead>
                                <tr>
                                	<th>序号</th>
                                	<th>股东名称</th>
                                	<th>股份类型</th>
                                	<th>持股数</th>
                                	<th>持股变化（股）</th>
                                	<th>占总股本比例</th>
                                	<th>增减情况</th>
                                </tr>
                                </thead>
                                <tbody id="circulate_shareholder">
								</tbody>
                            </table>
                           		</div>
                                    <h4 id=""><i class="fa fa-circle-o"></i>&nbsp;最新公告</h4>
                                    <div class="table-responsive">
						                <table class="table table-hover">
			                                <thead>
				                                <tr>
				                                    <th>序号</th>
				                                    <th>公告时间</th>
				                                    <th>标题</th>
				                                    <th>附件</th>
				                                </tr>
			                                </thead>
			                                <tbody id="stockNotices">
			                                </tbody>
			                            </table>
			                            <table>
				                        	<td col-lg="8">
									            <div class="text-center" align="center">
						                            <div class="box box2" data-kind ="b2"></div>
						                        </div>
								       		</td>
				                        </table>
						            </div>
						            <h4 id=""><i class="fa fa-circle-o"></i>&nbsp;最新研报</h4>
						            <div class="table-responsive">
						                <table class="table table-hover">
			                                <thead id="reportHead">
				                                <tr>
												    <th style="width:5%;">序号</th>
												    <th style="width:10%;">公告时间</th>
												    <th style="width: 45%;">标题</th>
												    <th>
												        <select id="rtypeflag" class="form-control" style="display: inline;width: auto;margin-left: 12%;font-size:12px;height: 30px;">
															<option value="">全部研报类型</option>
														</select>
													</th>
													<th id="fbjg">发布机构</th>
													<th id="pj">评级</th>
													<th id="ys">页数</th>
												    <th>附件</th>
												</tr>
			                                </thead>
			                                <tbody id="stockReports">
			                                </tbody>
			                            </table>
			                             <table>
			                        	<div col-lg="8">
								            <div class="text-center" align="center">
					                            <div class="box box3" data-kind ="b3"></div>
					                        </div>
							       		</div>
			                        </table>
						            </div>
                                </div>
                            </div>
                            <div id="tab-6" class="tab-pane">
                                <div class="panel-body">
                                	<div id="trademark_information_show">
										<h4 style='margin-top: 2%;' id='item2'><i class='fa fa-circle-o'></i>&nbsp;商标信息</h4>
										<div style='width: 100%;'>
											<table class='table table-hover table1'>
												<thead>
													<tr style='background-color: #f5f5f6;'>
														<th>序号</th>
														<th>商标</th>
														<th>商标名</th>
														<th>申请时间</th>
														<th>注册号</th>
														<th>国际分类</th>
													</tr>
												</thead>
												<tbody id="trademark_information">
												</tbody>
											</table>
										</div>
                                	</div>
                           			<div id="patent_show" style="margin-top:50px;">
										<h4 style='margin-top: 2%;' id='item2'><i class='fa fa-circle-o'></i>&nbsp;专利信息</h4>
										<div style='width: 100%;'>
											<table class='table table-hover table1'>
												<thead>
													<tr style='background-color: #f5f5f6;'>
														<th>序号</th>
														<th>专利类型</th>
														<th>公开（公告）号</th>
														<th>公开（公告）日期</th>
														<th>名称</th>
														<th>操作</th>
													</tr>
												</thead>
												<tbody id="patent">
												</tbody>
											</table>
										</div>
                           			</div>
                           			<div id="certificate_show" style="margin-top:50px;">
										<h4 style='margin-top: 2%;' id='item2'><i class='fa fa-circle-o'></i>&nbsp;证书信息</h4>
										<div style='width: 100%;'>
											<table class='table table-hover table1'>
												<thead>
													<tr style='background-color: #f5f5f6;'>
														<th>序号</th>
														<th>证书类型</th>
														<th>证书名称</th>
														<th>证书编号</th>
														<th>发证日期</th>
														<th>截止日期</th>
													</tr>
												</thead>
												<tbody id="certificate">
												</tbody>
											</table>
										</div>
                           			</div>
                           			<div id="copyright_show" style="margin-top:50px;">
										<h4 style='margin-top: 2%;' id='item2'><i class='fa fa-circle-o'></i>&nbsp;作品著作权</h4>
										<div style='width: 100%;'>
											<table class='table table-hover table1'>
												<thead>
													<tr style='background-color: #f5f5f6;'>
														<th>序号</th>
														<th>作品名称</th>
														<th>首次发表日期</th>
														<th>创作完成日期</th>
														<th>登记号</th>
														<th>登记日期</th>
														<th>登记类型</th>
													</tr>
												</thead>
												<tbody id="copyright">
												</tbody>
											</table>
										</div>
                           			</div>
                           			<div id="software_show" style="margin-top:50px;">
										<h4 style='margin-top: 2%;' id='item2'><i class='fa fa-circle-o'></i>&nbsp;软件著作权</h4>
										<div style='width: 100%;'>
											<table class='table table-hover table1'>
												<thead>
													<tr style='background-color: #f5f5f6;'>
														<th>序号</th>
														<th>登记批准日期</th>
														<th>软件全称</th>
														<th>软件简称</th>
														<th>登记号</th>
														<th>软件著作分类</th>
														<th>行业分类</th>
														<th>版本号</th>
													</tr>
												</thead>
												<tbody id="software">
												</tbody>
											</table>
										</div>
                           			</div>
                           			<div id="website_show" style="margin-top:50px;">
										<h4 style='margin-top: 2%;' id='item2'><i class='fa fa-circle-o'></i>&nbsp;网站信息</h4>
										<div style='width: 100%;'>
											<table class='table table-hover table1'>
												<thead>
													<tr style='background-color: #f5f5f6;'>
														<th>序号</th>
														<th>网址</th>
														<th>网站名称</th>
														<th>域名</th>
														<th>网站备案/许可证号</th>
													</tr>
												</thead>
												<tbody id="website">
												</tbody>
											</table>
										</div>
                           			</div>
                                </div>
                            </div>
                            <div id="tab-7" class="tab-pane">
                                <div class="panel-body">
                                	<div class="col-lg-12">
                                		<div class="col-lg-6">
                                			<div id="yysrjzs" style="width: 500px; height: 340px; float: left;"></div>
                                		</div>
                                		<div class="col-lg-6">
                                			<div id="lnsrjg" style="width: 500px; height: 340px; float: left;"></div>
                                		</div>
                                		<div class="col-lg-6">
                                			<div id="stockNetProfit" style="width: 500px; height: 340px; float: left;"></div>
                                		</div>
                                		<div class="col-lg-6">
                                			<div id="stockResearch" style="width: 500px; height: 340px; float: left;"></div>
										</div>
                                	</div>
                                    <div class="jqGrid_wrapper">
                                    <div data-toggle="buttons" class="btn-group" id="cwfx" data-js="">
				                        <label class="btn btn-white active" onclick="cwzy()" id="g0"> <input type="radio" id="option" name="options">财务摘要</label>
				                        <label class="btn btn-white" onclick="zcfz()" id="g1"> <input type="radio" id="option" name="options"> 资产负债表 </label>
				                        <label class="btn btn-white" onclick="lrb()" id="g2"> <input type="radio" id="option" name="options"> 利润表</label>
				                        <label class="btn btn-white" onclick="xjlb()" id="g3"> <input type="radio" id="option" name="options"> 现金流量表</label>
				                        <!-- <label class="btn btn-white" onclick="zygcb()" id="g4"> <input type="radio" id="option" name="options"> 主营构成表</label> -->
				                    </div>
				                    
                                    <div class="jqGrid_wrapper" id ="zcb">
	                                <table id="list48"></table>
	                                <div id="plist48"></div>
	                                </div>
	                                
	                                <div data-toggle="buttons" class="btn-group" style="margin-top: 2%">
				                        <label class="btn btn-white active" onclick="mgzb()" id="g0"> <input type="radio" id="option" name="options">每股指标</label>
				                        <label class="btn btn-white" onclick="ylnl()" id="g1"> <input type="radio" id="option" name="options">盈利能力与收益质量 </label>
				                        <label class="btn btn-white" onclick="zjjg()" id="g2"> <input type="radio" id="option" name="options"> 资金结构与偿债能力</label>
				                        <label class="btn btn-white" onclick="yynl()" id="g3"> <input type="radio" id="option" name="options"> 营运能力</label>
				                        <label class="btn btn-white" onclick="cznl()" id="g3"> <input type="radio" id="option" name="options"> 成长能力</label>
				                        <label class="btn btn-white" onclick="zb_xjll()" id="g3"> <input type="radio" id="option" name="options"> 现金流量</label>
				                        <label class="btn btn-white" onclick="cwbb()" id="g3"> <input type="radio" id="option" name="options"> 单季度财务报表</label>
				                    </div>
				                    <h4 style="margin-top: 2%;" id="item2"><i class="fa fa-circle-o"></i>&nbsp;利润百分比</h4>
				                    <table class="table table-hover table1" id="profit_percentage_show">
				                    <thead>
                                    			<tr>
                                    				<th rowspan="2" style="width:150px;">利润表</th>
                                    				<th colspan="2" style="width:162px">2019年度</th>
                                    				<th colspan="2" style="width:162px">2018年度</th>
                                    				<th colspan="2" style="width:162px">2017年度</th>
                                    				<th colspan="2" style="width:162px">2016年度</th>
                                    				<th colspan="2" style="width:162px">2015年度</th>
                                    				<th colspan="2" style="width:162px">2014年度</th>
                                    				<th colspan="2" style="width:162px">2013年度</th>
                                    			</tr>
                                    			<tr>
                                    				<th style="width:81px">数值</th>
                                    				<th style="width:81px">占比</th>
                                    				<th style="width:81px">数值</th>
                                    				<th style="width:81px">占比</th>
                                    				<th style="width:81px">数值</th>
                                    				<th style="width:81px">占比</th>
                                    				<th style="width:81px">数值</th>
                                    				<th style="width:81px">占比</th>
                                    				<th style="width:81px">数值</th>
                                    				<th style="width:81px">占比</th>
                                    				<th style="width:81px">数值</th>
                                    				<th style="width:81px">占比</th>
                                    				<th style="width:81px">数值</th>
                                    				<th style="width:81px">占比</th>
                                    			</tr>
                                    		</thead>
                                    		<tbody id="profit_percentage">
                                    		</tbody>
                                    	</table>
                                    	<h4 style="margin-top: 2%;" id="item2"><i class="fa fa-circle-o"></i>&nbsp;对外担保</h4>
                           				<table class="table table-hover table1" id="guarantee_show">
                                    		<thead>
                                    			<tr>
                                    				<th>序号</th>
                                    				<th>公示日期</th>
                                    				<th>担保方</th>
                                    				<th>被担保方</th>
                                    				<th>担保方式</th>
                                    				<th>担保金额(万元)</th>
                                    				<th>操作</th>
                                    			</tr>
                                    		</thead>
                                    		<tbody id="guarantee">
                                    		</tbody>
                                    	</table>
				                    <h4 style="margin-top: 2%;" id="item2"><i class="fa fa-circle-o"></i>&nbsp;财务指标</h4>
				                    <table class="table table-hover table1" id="finance_index_show">
                                    		<thead>
                                    			<tr>
                                    				<th>每股指标</th>
                                    				<th>2019年度</th>
                                    				<th>2018年度</th>
                                    				<th>2017年度</th>
                                    				<th>2016年度</th>
                                    				<th>2015年度</th>
                                    				<th>2014年度</th>
                                    				<th>2013年度</th>
                                    				<th>2012年度</th>
                                    				<th>2011年度</th>
                                    				<th>2010年度</th>
                                    			</tr>
                                    		</thead>
                                    		<tbody id="finance_index">
                                    		</tbody>
                                    	</table>
				                    <h4 style="margin-top: 2%;" id="item2"><i class="fa fa-circle-o"></i>&nbsp;分红信息</h4>
                           				<table class="table table-hover table1" id="dividend_info_show">
                                    		<thead>
                                    			<tr>
                                    				<th>序号</th>
                                    				<th>公告日期</th>
                                    				<th>分红方案</th>
                                    				<th>股权登记日</th>
                                    				<th>除权除息日</th>
                                    				<th>派息日</th>
                                    				<th>项目进度</th>
                                    			</tr>
                                    		</thead>
                                    		<tbody id="dividend_info">
                                    		</tbody>
                                    	</table>
                                    <div class="jqGrid_wrapper" id ="cwzb">
	                                <table id="list40"></table>
	                                <div id="plist40"></div>
	                                </div>
	                                
                                </div>
                            </div>
                        </div>
                        

                        </div>


                    </div>
                    
                    <!--<div id="menu" class="divcss5-right">
					    <ul>
					        <li><a href="#item1" class="cur">One</a></li>
					        <li><a href="#item2">Two</a></li>
					        <li><a href="#item3">Three</a></li>
					        <li><a href="#item4">Four</a></li>
					        <li><a href="#item5">Five</a></li>
					    </ul>
					</div>-->
                    
                    
                    </div>
					</div>
				</div>
			</div>


            </div>
    <jsp:include page="footer.jsp" flush="true" />
</div>
</div>
    <!-- Mainly scripts -->
    <script src="${pageContext.request.contextPath }/js/jquery-2.1.1.js"></script>
    <script src="${pageContext.request.contextPath }/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath }/js/mypages.js"></script>
    <script src="${pageContext.request.contextPath }/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="${pageContext.request.contextPath }/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

    <!-- Custom and plugin javascript -->
    <script src="${pageContext.request.contextPath }/js/inspinia.js"></script>
    <script src="${pageContext.request.contextPath }/js/plugins/pace/pace.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/echarts.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/k-line.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/stockInfo.js"></script>
    <script src="${pageContext.request.contextPath }/js/plugins/jquery-ui/jquery-ui.min.js"></script>
    <!-- jqGrid -->
    <script src="${pageContext.request.contextPath }/js/plugins/jqGrid/i18n/grid.locale-en.js"></script>
    <script src="${pageContext.request.contextPath }/js/plugins/jqGrid/jquery.jqGrid.min.js"></script>
    
     <script type="text/javascript" src="${pageContext.request.contextPath }/js/zcbg.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/yysrjzs.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/js/lnsrjg.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/js/stockNetProfit.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/js/stockResearch.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/js/zsch.js"></script>
</body>
<script type="text/javascript">
<% 
String firm_id = (String)request.getParameter("company_id");
%>
let firm_id = '<%=firm_id%>'

let stock='${stock.name}'

let total_value='${stockInfo.total_value}'
let turnover='${stockInfo.turnover}'
let circulation_market_value='${stockInfo.circulation_market_value}'
document.getElementById('total_value').innerHTML=Math.round((total_value/100000000)*100)/100+'亿'
document.getElementById('turnover').innerHTML=Math.round((turnover/100000000)*100)/100+'亿'
document.getElementById('circulation_market_value').innerHTML=Math.round((circulation_market_value/100000000)*100)/100+'亿'

let klineData='${stockInfo.klines}'
let industryStatus=${industryStatus}
let firmAtlas=${firmAtlas}

function lawsuit() {
	lawsuit_registerInfo()
	start_announcement()
	tribunal_announcement()
	judgment()
	run_exception()
	administration_punish()
	stock_rights()
	executionPerson()
	document.getElementById("lawsuit").onclick=null
}

function knowledge() {
	trademark_information()
	patent_table()
	copyright_table()
	software_table()
	website_table()
	document.getElementById("knowledge").onclick=null
}

function marketInfo() {
	security_info()
	illegalHandle()
	allotShare_detail()
	issue_info()
	additional_info()
	manage_shareChange()
	shareCapital()
	shareholder()
	circulate_shareholder()
	document.getElementById("marketInfo").onclick=null
}

function marketAnalyze() {
	invest()
	controlShare()
	document.getElementById("marketAnalyze").onclick=null
}

function finance_analyze(){
	profit_percentage()
	guarantee()
	finance_index()
	dividend_info()
	document.getElementById("finance_analyze").onclick=null
}

function lawsuit_registerInfo() {
	$.ajax({
		url: '${pageContext.request.contextPath}/stock/lawsuit_registerInfo',
		type: 'POST',
		data: {
			firm_id: firm_id,
			page: "1",
			size: "10"
		},
		success:function(res){
			let resObj=JSON.parse(res)
			let list=resObj.list
			let num=1
			if(list.length>0){
				for(const i in list){
					let accuserArr=list[i].accuser.split(',')
					let defendantArr=list[i].defendant.split(',')
					let accuser=''
					let defendant=''
					for (const a of accuserArr){
						accuser+=(a+'  ')
					}
					for (const d of defendantArr){
						defendant+=(d+'  ')
					}
					if(list[i].anno_date!==undefined){
						$('#lawsuit_registerInfo').append(
							'<tr>'+
								'<td>'+num+'</td>'+
								'<td>'+list[i].anno_date.substring(0, 10)+'</td>'+
								'<td>'+list[i].case_id+'</td>'+
								'<td>'+accuser+'</td>'+
								'<td>'+defendant+'</td>'+
							'</tr>'
						)
					}else{
						$('#lawsuit_registerInfo').append(
								'<tr>'+
									'<td>'+num+'</td>'+
									'<td></td>'+
									'<td>'+list[i].case_id+'</td>'+
									'<td>'+accuser+'</td>'+
									'<td>'+defendant+'</td>'+
								'</tr>'
							)
					}
					num+=1
				}
				if(resObj.totalPage>1){
					$('#lawsuit_registerInfo').append(
						'<tr>'+
							'<td colspan="5" style="text-align:center;"><a href="${pageContext.request.contextPath}/stock/lawsuit_registerInfo-more?firm_id='+firm_id+'&companyName='+stock+'" target="_blank">查看更多</a></td>'+
						'</tr>'
					)
				}
			}else{
				$('#lawsuit_registerInfo_show').hide()
				$('#lawsuit_registerInfo_show').prev().hide()
			}
		},
		error:function(res){
			console.log(res)
		}
	})
}

function start_announcement() {
	$.ajax({
		url: '${pageContext.request.contextPath}/stock/start_announcement',
		type: 'POST',
		data: {
			firm_id: firm_id,
			page: "1",
			size: "10"
		},
		success:function(res){
			let resObj=JSON.parse(res)
			let list=resObj.list
			let num=1
			if(list.length>0){
				for(const i in list){
					let accuserArr=JSON.parse(list[i].accuser)
					let defendantArr=JSON.parse(list[i].defendant)
					let accuser=''
					let defendant=''
					for (const a of accuserArr){
						accuser+=(a+'  ')
					}
					for (const d of defendantArr){
						defendant+=(d+'  ')
					}
					if(list[i].anno_date!==undefined){
						$('#start_announcement').append(
							'<tr>'+
								'<td>'+num+'</td>'+
								'<td>'+list[i].anno_date.substring(0, 10)+'</td>'+
								'<td>'+list[i].case_id+'</td>'+
								'<td>'+list[i].case_cause+'</td>'+
								'<td>'+accuser+'</td>'+
								'<td>'+defendant+'</td>'+
							'</tr>'
						)
					}else{
						$('#start_announcement').append(
								'<tr>'+
									'<td>'+num+'</td>'+
									'<td></td>'+
									'<td>'+list[i].case_id+'</td>'+
									'<td>'+list[i].case_cause+'</td>'+
									'<td>'+accuser+'</td>'+
									'<td>'+defendant+'</td>'+
								'</tr>'
							)
					}
					num+=1
				}
				if(resObj.totalPage>1){
					$('#start_announcement').append(
						'<tr>'+
							'<td colspan="6" style="text-align:center;"><a href="${pageContext.request.contextPath}/stock/start_announcement-more?firm_id='+firm_id+'&companyName='+stock+'" target="_blank">查看更多</a></td>'+
						'</tr>'
					)
				}
			}else{
				$('#start_announcement_show').hide()
				$('#start_announcement_show').prev().hide()
			}
		},
		error:function(res){
			console.log(res)
		}
	})
}

function tribunal_announcement() {
	$.ajax({
		url: '${pageContext.request.contextPath}/stock/tribunal_announcement',
		type: 'POST',
		data: {
			firm_id: firm_id,
			page: "1",
			size: "10"
		},
		success:function(res){
			let resObj=JSON.parse(res)
			let list=resObj.list
			let num=1
			if(list.length>0){
				for(const i in list){
					let defendantArr=list[i].defendant.split(',')
					let defendant=''
					for (const d of defendantArr){
						defendant+=(d+'  ')
					}
					if(list[i].anno_date!==undefined){
						$('#tribunal_announcement').append(
							'<tr>'+
								'<td>'+num+'</td>'+
								'<td>'+list[i].anno_date.substring(0, 10)+'</td>'+
								'<td>'+list[i].anno_type+'</td>'+
								'<td>'+list[i].case_cause+'</td>'+
								'<td>'+defendant+'</td>'+
								'<td>'+list[i].court+'</td>'+
								'<td><a href="${pageContext.request.contextPath}/stock/tribunal_announcement-detail?article_public_id='+list[i].article_public_id+'&companyName='+stock+'" target="_blank">详情</td>'+
							'</tr>'
						)
					}else{
						$('#tribunal_announcement').append(
								'<tr>'+
									'<td>'+num+'</td>'+
									'<td></td>'+
									'<td>'+list[i].anno_type+'</td>'+
									'<td>'+list[i].case_cause+'</td>'+
									'<td>'+defendant+'</td>'+
									'<td>'+list[i].court+'</td>'+
									'<td><a href="${pageContext.request.contextPath}/stock/tribunal_announcement-detail?article_public_id='+list[i].article_public_id+'&companyName='+stock+'" target="_blank">详情</td>'+
								'</tr>'
							)
					}
					num+=1
				}
				if(resObj.totalPage>1){
					$('#tribunal_announcement').append(
						'<tr>'+
							'<td colspan="7" style="text-align:center;"><a href="${pageContext.request.contextPath}/stock/tribunal_announcement-more?firm_id='+firm_id+'&companyName='+stock+'" target="_blank">查看更多</a></td>'+
						'</tr>'
					)
				}
			}else{
				$('#tribunal_announcement_show').hide()
				$('#tribunal_announcement_show').prev().hide()
			}
		},
		error:function(res){
			console.log(res)
		}
	})
}

function judgment() {
	$.ajax({
		url: '${pageContext.request.contextPath}/stock/judgment',
		type: 'POST',
		data: {
			firm_id: firm_id,
			page: "1",
			size: "10"
		},
		success:function(res){
			let resObj=JSON.parse(res)
			let list=resObj.list
			let num=1
			if(list.length>0){
				for(const i in list){
					if(list[i].refereeTime!==undefined){
						$('#judgment').append(
							'<tr>'+
								'<td>'+num+'</td>'+
								'<td>'+list[i].refereeTime.substring(0, 10)+'</td>'+
								'<td>'+list[i].title+'</td>'+
								'<td>'+list[i].caseCause+'</td>'+
								'<td>'+list[i].caseID+'</td>'+
								'<td><a href="${pageContext.request.contextPath}/stock/judgment-detail?article_public_id='+list[i].article_public_id+'&companyName='+stock+'" target="_blank">详情</a></td>'+
							'</tr>'
						)
					}else{
						$('#judgment').append(
								'<tr>'+
									'<td>'+num+'</td>'+
									'<td></td>'+
									'<td>'+list[i].title+'</td>'+
									'<td>'+list[i].caseCause+'</td>'+
									'<td>'+list[i].caseID+'</td>'+
									'<td><a href="${pageContext.request.contextPath}/stock/judgment-detail?article_public_id='+list[i].article_public_id+'&companyName='+stock+'" target="_blank">详情</a></td>'+
								'</tr>'
							)
					}
					num+=1
				}
				if(resObj.totalPage>1){
					$('#judgment').append(
						'<tr>'+
							'<td colspan="6" style="text-align:center;"><a href="${pageContext.request.contextPath}/stock/judgment-more?firm_id='+firm_id+'&companyName='+stock+'" target="_blank">查看更多</a></td>'+
						'</tr>'
					)
				}
			}else{
				$('#judgment_show').hide()
				$('#judgment_show').prev().hide()
			}
		},
		error:function(res){
			console.log(res)
		}
	})
}

function run_exception() {
	$.ajax({
		url: '${pageContext.request.contextPath}/stock/run_exception',
		type: 'POST',
		data: {
			firm_id: firm_id,
			page: "1",
			size: "10"
		},
		success:function(res){
			let resObj=JSON.parse(res)
			let list=resObj.list
			console.log(list)
			let num=1
			if(list.length>0){
				for(const i in list){
					if(list[i].enterDate!==undefined && list[i].leaveDate!==undefined){
						$('#run_exception').append(
							'<tr>'+
								'<td>'+num+'</td>'+
								'<td>'+list[i].enterReason+'</td>'+
								'<td>'+list[i].authority+'</td>'+
								'<td>'+list[i].enterDate.substring(0,10)+'</td>'+
								'<td>'+list[i].leaveReason+'</td>'+
								'<td>'+list[i].leaveAuthority+'</td>'+
								'<td>'+list[i].leaveDate.substring(0,10)+'</td>'+
							'</tr>'
						)
					}else if(list[i].enterDate!==undefined){
						$('#run_exception').append(
								'<tr>'+
									'<td>'+num+'</td>'+
									'<td>'+list[i].enterReason+'</td>'+
									'<td>'+list[i].authority+'</td>'+
									'<td>'+list[i].enterDate.substring(0,10)+'</td>'+
									'<td>'+list[i].leaveReason+'</td>'+
									'<td>'+list[i].leaveAuthority+'</td>'+
									'<td></td>'+
								'</tr>'
							)
					}else if(list[i].leaveDate!==undefined){
						$('#run_exception').append(
								'<tr>'+
									'<td>'+num+'</td>'+
									'<td>'+list[i].enterReason+'</td>'+
									'<td>'+list[i].authority+'</td>'+
									'<td></td>'+
									'<td>'+list[i].leaveReason+'</td>'+
									'<td>'+list[i].leaveAuthority+'</td>'+
									'<td>'+list[i].leaveDate.substring(0,10)+'</td>'+
								'</tr>'
							)
					}
					num+=1
				}
				if(resObj.totalPage>1){
					$('#run_exception').append(
						'<tr>'+
							'<td colspan="7" style="text-align:center;"><a href="${pageContext.request.contextPath}/stock/run_exception-more?firm_id='+firm_id+'&companyName='+stock+'" target="_blank">查看更多</a></td>'+
						'</tr>'
					)
				}
			}else{
				$('#run_exception_show').hide()
				$('#run_exception_show').prev().hide()
			}
		},
		error:function(res){
			console.log(res)
		}
	})
}

function administration_punish(){
	$.ajax({
		url: '${pageContext.request.contextPath}/stock/administration_punish',
		type: 'POST',
		data: {
			firm_id: firm_id,
			page: "1",
			size: "10"
		},
		success:function(res){
			let resObj=JSON.parse(res)
			let list=resObj.list
			let num=1
			if(list.length>0){
				for(const i in list){
					if(list[i].judgment_date!==undefined){
						$('#administration_punish').append(
							'<tr>'+
								'<td>'+num+'</td>'+
								'<td>'+list[i].judgment_date.substring(0,10)+'</td>'+
								'<td>'+list[i].judgment_document+'</td>'+
								'<td style="text-overflow: ellipsis;white-space: nowrap;overflow: hidden;">'+list[i].result+'</td>'+
								'<td>'+list[i].judgment_org+'</td>'+
								'<td><a href="${pageContext.request.contextPath}/stock/administration_punish-detail?article_public_id='+list[i].article_public_id+'&companyName='+stock+'" target="_blank">详情</a></td>'+
							'</tr>'
						)
					}else{
						$('#administration_punish').append(
								'<tr>'+
									'<td>'+num+'</td>'+
									'<td></td>'+
									'<td>'+list[i].judgment_document+'</td>'+
									'<td style="text-overflow: ellipsis;white-space: nowrap;overflow: hidden;">'+list[i].result+'</td>'+
									'<td>'+list[i].judgment_org+'</td>'+
									'<td><a href="${pageContext.request.contextPath}/stock/administration_punish-detail?article_public_id='+list[i].article_public_id+'&companyName='+stock+'" target="_blank">详情</a></td>'+
								'</tr>'
							)
					}
					num+=1
				}
				if(resObj.totalPage>1){
					$('#administration_punish').append(
						'<tr>'+
							'<td colspan="6" style="text-align:center;"><a href="${pageContext.request.contextPath}/stock/administration_punish-more?firm_id='+firm_id+'&companyName='+stock+'" target="_blank">查看更多</a></td>'+
						'</tr>'
					)
				}
			}else{
				$('#administration_punish_show').hide()
				$('#administration_punish_show').prev().hide()
			}
		},
		error:function(res){
			console.log(res)
		}
	})
}

function stock_rights(){
	$.ajax({
		url: '${pageContext.request.contextPath}/stock/stock_rights',
		type: 'POST',
		data: {
			firm_id: firm_id,
			page: "1",
			size: "10"
		},
		success:function(res){
			let resObj=JSON.parse(res)
			let list=resObj.list
			let num=1
			if(list.length>0){
				for(const i in list){
					if(list[i].issue_date!==undefined){
						$('#stock_rights').append(
							'<tr>'+
								'<td>'+num+'</td>'+
								'<td>'+list[i].pledgee+'</td>'+
								'<td>'+list[i].pledgee_id_number+'</td>'+
								'<td>'+list[i].pledge_amount+'</td>'+
								'<td>'+list[i].pledger_company+'</td>'+
								'<td>'+list[i].pledger+'</td>'+
								'<td>'+list[i].pledger_id_number+'</td>'+
								'<td>'+list[i].issue_date.substring(0,10)+'</td>'+
								'<td>'+list[i].equity_status+'</td>'+
								'<td>'+list[i].remarks+'</td>'+
							'</tr>'
						)
					}else{
						$('#stock_rights').append(
								'<tr>'+
									'<td>'+num+'</td>'+
									'<td>'+list[i].pledgee+'</td>'+
									'<td>'+list[i].pledgee_id_number+'</td>'+
									'<td>'+list[i].pledge_amount+'</td>'+
									'<td>'+list[i].pledger_company+'</td>'+
									'<td>'+list[i].pledger+'</td>'+
									'<td>'+list[i].pledger_id_number+'</td>'+
									'<td></td>'+
									'<td>'+list[i].equity_status+'</td>'+
									'<td>'+list[i].remarks+'</td>'+
								'</tr>'
							)
					}
					num+=1
				}
				if(resObj.totalPage>1){
					$('#stock_rights').append(
						'<tr>'+
							'<td colspan="10" style="text-align:center;"><a href="${pageContext.request.contextPath}/stock/stock_rights-more?firm_id='+firm_id+'&companyName='+stock+'" target="_blank">查看更多</a></td>'+
						'</tr>'
					)
				}
			}else{
				$('#stock_rights_show').hide()
				$('#stock_rights_show').prev().hide()
			}
		},
		error:function(res){
			console.log(res)
		}
	})
}

function executionPerson(){
	$.ajax({
		url: '${pageContext.request.contextPath}/stock/executionPerson',
		type: 'POST',
		data: {
			firm_id: firm_id,
			page: "1",
			size: "10"
		},
		success:function(res){
			let resObj=JSON.parse(res)
			let list=resObj.list
			let num=1
			if(list.length>0){
				for(const i in list){
					if(list[i].publishDate!==undefined){
						$('#execution_person').append(
							'<tr>'+
								'<td>'+num+'</td>'+
								'<td>'+list[i].caseCode+'</td>'+
								'<td>'+list[i].publishDate.substring(0,10)+'</td>'+
								'<td>'+list[i].iname+'</td>'+
								'<td>'+list[i].cardNum+'</td>'+
								'<td>'+list[i].execute_the_underlying+'</td>'+
								'<td>'+list[i].gistUnit+'</td>'+
								'<td>'+list[i].performance+'</td>'+
								'<td><a href="${pageContext.request.contextPath}/stock/execution_person-detail?article_public_id='+list[i].article_public_id+'&companyName='+stock+'" target="_blank">详情</a></td>'+
							'</tr>'
						)
					}else{
						$('#execution_person').append(
								'<tr>'+
									'<td>'+num+'</td>'+
									'<td>'+list[i].caseCode+'</td>'+
									'<td></td>'+
									'<td>'+list[i].iname+'</td>'+
									'<td>'+list[i].cardNum+'</td>'+
									'<td>'+list[i].execute_the_underlying+'</td>'+
									'<td>'+list[i].gistUnit+'</td>'+
									'<td>'+list[i].performance+'</td>'+
									'<td><a href="${pageContext.request.contextPath}/stock/execution_person-detail?article_public_id='+list[i].article_public_id+'&companyName='+stock+'" target="_blank">详情</a></td>'+
								'</tr>'
							)
					}
					num+=1
				}
				if(resObj.totalPage>1){
					$('#execution_person').append(
						'<tr>'+
							'<td colspan="9" style="text-align:center;"><a href="${pageContext.request.contextPath}/stock/execution_person-more?firm_id='+firm_id+'&companyName='+stock+'" target="_blank">查看更多</a></td>'+
						'</tr>'
					)
				}
			}else{
				$('#execution_person_show').hide()
				$('#execution_person_show').prev().hide()
			}
		},
		error:function(res){
			console.log(res)
		}
	})
}

law('${company_id}','${stock.name}');
	function law(id,iname){
		$.ajax({
			url:'${pageContext.request.contextPath}/stock/getLaw',
			type:'POST',
			data:{
				id:id,
				iname:iname
			},
			success:function(res){
				var abnlist=res.abnormal.data;
				var penalizelist=res.penalize.data;
				var pledgelist=res.pledge.data;
				var personlist=res.executionperson.data;
				var html='';
				if(abnlist.length != 0){
					$('#law1-tbody').html('');
					for(var i=0;i<abnlist.length;i++){
						var listiii=abnlist[i]._source;
						html+='<tr>'+
								'<td>'+listiii.enterReason+'</td>'+
								'<td>'+listiii.authority+'</td>'+
								'<td>'+listiii.enterDate.substring(0,10)+'</td>'+
								'<td>'+listiii.leaveReason+'</td>'+
								'<td>'+listiii.leaveAuthority+'</td>'+
								'<td>'+listiii.leaveDate.substring(0,10)+'</td>'+
							 '</tr>';
								
					}
					$('#law1-tbody').html(html);
				}else if(penalizelist.length != 0){
					$('#law2-tbody').html('');
					for(var i=0;i<penalizelist.length;i++){
						var listiii=penalizelist[i]._source;
						html+='<tr>'+
								'<td>'+listiii.judgment_document+'</td>'+
								'<td>'+listiii.firm+'</td>'+
								'<td>'+listiii.type+'</td>'+
								'<td>'+listiii.punishment_reason+'</td>'+
								'<td>'+listiii.according_to+'</td>'+
								'<td>'+listiii.result+'</td>'+
								'<td>'+listiii.open_date.substring(0,10)+'</td>'+
								'<td>'+listiii.judgment_status+'</td>'+
								'<td>'+listiii.judgment_org+'</td>'+
								'<td>'+listiii.judgment_date.substring(0,10)+'</td>'+
							 '</tr>';
					}
					$('#law2-tbody').html(html);
				}else if(pledgelist.length != 0){
					$('#law3-tbody').html('');
					for(var i=0;i<pledgelist.length;i++){
						var listiii=pledgelist[i]._source;
						html+='<tr>'+
								'<td>'+listiii.pledger+'</td>'+
								'<td>'+listiii.pledger_id_number+'</td>'+
								'<td>'+listiii.pledge_amount+'</td>'+
								'<td>'+listiii.pledger_company+'</td>'+
								'<td>'+listiii.pledgee+'</td>'+
								'<td>'+listiii.pledgee_id_number+'</td>'+
								'<td>'+listiii.issue_date.substring(0,10)+'</td>'+
								'<td>'+listiii.equity_status+'</td>'+
								'<td>'+listiii.remarks+'</td>'+
							 '</tr>';
					}
					$('#law3-tbody').html(html);
				}else if(personlist.length != 0){
					$('#law4-tbody').html('');
					for(var i=0;i<personlist.length;i++){
						var person=personlist[i]._source;
						html+='<tr>'+
								'<td>'+person.caseCode+'</td>'+
								'<td>'+person.regDate.substring(0,10)+'</td>'+
								'<td>'+person.iname+'</td>'+
								'<td>'+person.cardNum+'</td>'+
								'<td>'+person.execute_the_underlying+'</td>'+
								'<td>'+person.courtName+'</td>'+
								'<td>'+person.performance+'</td>'+
							 '</tr>';
					}
					$('#law4-tbody').html(html);
				}
			},
			error:function(err){
				console.log(err);
			}
		})
	}

	Ipr('${company_id}');
	function Ipr(id){
		$.ajax({
			url:'${pageContext.request.contextPath}/stock/getIpr',
			type:'POST',
			data:{
				id:id
			},
			success:function(res){
				var list=res.production.data;
				var html='';
				if(list.length != 0){
					$('#copyright-tbody').html('');
					for(var i=0;i<list.length;i++){
						var production=list[i]._source;
						html+='<tr>'+
								'<td>'+(i+1)+'</td>'+
								'<td>'+production.name+'</td>'+
								'<td>'+production.publish_date.substring(0,10)+'</td>'+
								'<td>'+production.complete_date.substring(0,10)+'</td>'+
								'<td>'+production.register_no+'</td>'+
								'<td>'+production.register_date.substring(0,10)+'</td>'+
								'<td>'+production.type+'</td>'+
							 '</tr>';
					}
					$('#copyright-tbody').html(html);
				}
			},
			error:function(err){
				console.log(err);
			}
		})
	}
	
/* console.log('${stock}'); */
	$(document).ready(function() {
		var width = $('.tab-content').width()*0.98;
		var div=document.getElementById("stockChange")
		//div.style.width= width+"px";
		
		var width1 = $('.tab-content').width()*0.45;
		var width2 = width1*0.92
		var yysrjzs1=document.getElementById("yysrjzs")
		yysrjzs1.style.width= width2+"px";
		var lnsrjg1=document.getElementById("lnsrjg")
		lnsrjg1.style.width= width1+"px";
		var stockNetProfit1=document.getElementById("stockNetProfit")
		stockNetProfit1.style.width= width2+"px";
		var stockResearch1=document.getElementById("stockResearch")
		stockResearch1.style.width= width1+"px";
		
		let kDatas=JSON.parse(klineData)
		let kDatasArr=[]
		let kDataArr=[]
		let kds=[]
		for(let kData of kDatas){
			kds=kData.split(',')
			for(let i=0;i<5;i++){
				if(!isNaN(kds[i])){
					kds[i]=Number(kds[i])
				}
				kDataArr.push(kds[i])
			}
			kDatasArr.push(kDataArr)
			kDataArr=[]
		}
		let kDataJson=JSON.stringify(kDatasArr);
		kline(kDataJson);
		
		let scopeMap=new Map([
			['level1','0-10万'],['level2','10-100万'],
			['level3','100-1000万'],['level4','1000-5000万'],
			['level5','5000万以上']
		])
		let colors=['#1EBBEE', '#66cf9b', '#68d1da', '#3FA7DC', '#1F9FFF']
		let scopes=['0-10万', '10-100万', '100-1000万', '1000-5000万', '5000万以上']
		for(const i in scopes){
			if(scopes[i]==scopeMap.get(industryStatus.level)){
				scopes[i]=scopes[i]+'(当前企业地位)'
				colors[i]='#FE6C2E'
				break;
			}
		}
		if(industryStatus.province!=undefined){
			let iChart=echarts.init(document.getElementById('industryStatus'))
			let provinceDataMap=new Map()
			for(let o of JSON.parse(industryStatus.province).data){
				provinceDataMap.set(o.level, o.value)
			}
			let option = {
				    tooltip: {
				        trigger: 'item',
				        formatter: '总计 {c} 万元({d}%)'
				    },
				    legend: {
				        orient: 'vertical',
				        left: 'left',
				        data: scopes
				    },
				    color: colors,
				    series: [
				        {
				            name: '访问来源',
				            type: 'pie',
				            radius: '55%',
				            center: ['50%', '60%'],
				            data: [
				                {value: provinceDataMap.get('level1')==undefined ? 0 : provinceDataMap.get('level1'), name: scopes[0]},
				                {value: provinceDataMap.get('level2')==undefined ? 0 : provinceDataMap.get('level2'), name: scopes[1]},
				                {value: provinceDataMap.get('level3')==undefined ? 0 : provinceDataMap.get('level3'), name: scopes[2]},
				                {value: provinceDataMap.get('level4')==undefined ? 0 : provinceDataMap.get('level4'), name: scopes[3]},
				                {value: provinceDataMap.get('level5')==undefined ? 0 : provinceDataMap.get('level5'), name: scopes[4]}
				            ],
				            emphasis: {
				                itemStyle: {
				                    shadowBlur: 10,
				                    shadowOffsetX: 0,
				                    shadowColor: 'rgba(0, 0, 0, 0.5)'
				                }
				            }
				        }
				    ]
				};
			iChart.setOption(option)
			$('#industryStatus').append(
				'<p style="font-size:1.2em;text-align:center;">'+
					JSON.parse(industryStatus.province).text+
				'</p>'
			)
		}
		if(industryStatus.nation!=undefined){
			let iChart2=echarts.init(document.getElementById('industryStatus2'))
			let nationDataMap=new Map()
			for(let o of JSON.parse(industryStatus.nation).data){
				nationDataMap.set(o.level, o.value)
			}
			let option2 = {
				    tooltip: {
				        trigger: 'item',
				        formatter: '{b} : {c} ({d}%)'
				    },
				    legend: {
				        orient: 'vertical',
				        left: 'left',
				        data: scopes
				    },
				    color: colors,
				    series: [
				        {
				            name: '访问来源',
				            type: 'pie',
				            radius: '55%',
				            center: ['50%', '60%'],
				            data: [
				                {value: nationDataMap.get('level1')==undefined ? 0 : nationDataMap.get('level1'), name: scopes[0]},
				                {value: nationDataMap.get('level2')==undefined ? 0 : nationDataMap.get('level2'), name: scopes[1]},
				                {value: nationDataMap.get('level3')==undefined ? 0 : nationDataMap.get('level3'), name: scopes[2]},
				                {value: nationDataMap.get('level4')==undefined ? 0 : nationDataMap.get('level4'), name: scopes[3]},
				                {value: nationDataMap.get('level5')==undefined ? 0 : nationDataMap.get('level5'), name: scopes[4]}
				            ],
				            emphasis: {
				                itemStyle: {
				                    shadowBlur: 10,
				                    shadowOffsetX: 0,
				                    shadowColor: 'rgba(0, 0, 0, 0.5)'
				                }
				            }
				        }
				    ]
				};
			iChart2.setOption(option2)
			$('#industryStatus2').append(
				'<p style="font-size:1.2em;text-align:center;">'+
					JSON.parse(industryStatus.nation).text+
				'</p>'
			)
		}
		let provinceMap=new Map([
			['110000','北京市'],['130000','河北省'],
			['420000','湖北省'],['140000','山西省'],
			['430000','湖南省'],['530000','云南省'],
			['410000','河南省'],['440000','广东省'],
			['510000','四川省'],['120000','天津市'],
			['340000','安徽省'],['330000','浙江省'],
			['370000','山东省'],['150000','内蒙古自治区'],
			['500000','重庆市'],['450000','广西自治区'],
			['210000','辽宁省'],['320000','江苏省'],
			['460000','海南省'],['610000','陕西省'],
			['350000','福建省'],['360000','江西省'],
			['520000','贵州省'],['540000','西藏自治区'],
			['220000','吉林省'],['310000','上海市'],
			['230000','黑龙江省'],['620000','甘肃省'],
			['630000','青海省'],['640000','宁夏自治区'],
			['650000','新疆自治区'],['710000','台湾省'],
			['810000','香港特别行政区'],['820000','澳门特别行政区']
		])
		let provinces=[]
		let provinceData=[]
		for(let o of JSON.parse(industryStatus.provinces).data){
			if(o.value>0){
				provinces.push(provinceMap.get(o.provinceId))
				provinceData.push(Math.round((o.value/10000)*100)/100)
			}
		}
		let firmProvince=provinceMap.get(industryStatus.provinceId)
		for(const i in provinces){
			if(firmProvince==provinces[i]){
				provinces[i]=provinces[i]+'(企业所处省份)'
				break
			}
		}
		let iChart3=echarts.init(document.getElementById('industryStatus3'))
		let option3 = {
			    color: ['#3398DB'],
			    tooltip: {
			        trigger: 'axis',
			        axisPointer: {            // 坐标轴指示器，坐标轴触发有效
			            type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
			        },
			        formatter: '{b} : {c}亿元'
			    },
			    grid: {
			        left: '3%',
			        right: '4%',
			        bottom: '3%',
			        containLabel: true
			    },
			    xAxis: [
			        {
			            type: 'category',
			            data: provinces,
			            axisTick: {
			                alignWithLabel: true
			            },
			            axisLabel:{
			            	rotate: 60
			            }
			        }
			    ],
			    yAxis: [
			        {
			            type: 'value'
			        }
			    ],
			    series: [
			        {
			            name: '直接访问',
			            type: 'bar',
			            barWidth: '60%',
			            data: provinceData,
			        }
			    ]
			};
		console.log(option3)
		iChart3.setOption(option3)
		$('#industryStatus3').append(
			'<p style="text-align:center;font-size:1.2em;">'+JSON.parse(industryStatus.provinces).text+'</p>'		
		)
		
		let iChart4=echarts.init(document.getElementById('firmAtlas'))
		var categories = [];
	    for (var i = 0; i < Object.keys(firmAtlas).length*2+1; i++) {
	        categories[i] = {
	            name: '类目' + i
	        };
	    }
	    let dataAll=[]
	    let links=[]
	    let inside=['股东','供应商','法定代表人','高管']
	    let external=['分支公司','客户','控股公司','投资企业']
	    dataAll.push({
	    	name: firmAtlas.firm_name,
	    	des: firmAtlas.firm_abbreviation,
	    	symbolSize: 70,
            category: 0,
	    })
	    let category=1
	    let jsonOb=JSON.parse(firmAtlas.jsonOb)
	    console.log(JSON.parse(firmAtlas.jsonOb))
	    for(let key in jsonOb){
	    	dataAll.push({
	    		name: jsonOb[key].Name,
	    		des: jsonOb[key].Name,
	    		symbolSize: 50,
	            category: category,
	    	})
	    	if(inside.indexOf(jsonOb[key].Name)!=-1){
	    		links.push({
		    		source: jsonOb[key].Name,
	                target: dataAll[0].name
		    	})
	    	}else if(external.indexOf(jsonOb[key].Name)!=-1){
	    		links.push({
		    		source: dataAll[0].name,
	                target: jsonOb[key].Name
		    	})
	    	}
	    	category+=1
	    	for(let o of jsonOb[key].Children){
	    		switch (key) {
				case "Branchs":
					dataAll.push({
			    		name: o.name,
			    		des: o.faren_name,
			    		symbolSize: 50,
			            category: category,
			    	})
			    	links.push({
			    		source: o.name,
		                target: jsonOb[key].Name
			    	})
					break;
				case "clients":
					dataAll.push({
			    		name: o.name,
			    		des: o.name,
			    		symbolSize: 50,
			            category: category,
			    	})
			    	links.push({
			    		source: o.name,
		                target: jsonOb[key].Name
			    	})
					break;
				case "executives":
					dataAll.push({
			    		name: o.gaoguan_name,
			    		des: o.position,
			    		symbolSize: 50,
			            category: category,
			    	})
			    	links.push({
			    		source: o.gaoguan_name,
		                target: jsonOb[key].Name
			    	})
					break;
				case "foreignInvestments":
					dataAll.push({
			    		name: o.investment_name,
			    		des: o.registered_capital_str,
			    		symbolSize: 50,
			            category: category,
			    	})
			    	links.push({
			    		source: o.investment_name,
		                target: jsonOb[key].Name
			    	})
					break;
				case "holdingCompanys":
					dataAll.push({
			    		name: o.investment_name,
			    		des: o.registered_capital_str,
			    		symbolSize: 50,
			            category: category,
			    	})
			    	links.push({
			    		source: o.investment_name,
		                target: jsonOb[key].Name
			    	})
					break;
				case "legalRepresentatives":
					dataAll.push({
			    		name: o.name,
			    		des: o.name,
			    		symbolSize: 50,
			            category: category,
			    	})
			    	links.push({
			    		source: o.name,
		                target: jsonOb[key].Name
			    	})
					break;
				case "shares":
					dataAll.push({
			    		name: o.gudong_name,
			    		des: o.percentage+'%',
			    		symbolSize: 50,
			            category: category,
			    	})
			    	links.push({
			    		source: o.gudong_name,
		                target: jsonOb[key].Name
			    	})
					break;
				case "suppliers":
					dataAll.push({
			    		name: o.name,
			    		des: o.name,
			    		symbolSize: 50,
			            category: category,
			    	})
			    	links.push({
			    		source: o.name,
		                target: jsonOb[key].Name
			    	})
					break;
	    		}
	    	}
	    	category+=1
	    }
	    let nameObj={}
	    for(let o of dataAll) {
	    	nameObj[o.name]=o
	    }
	    dataAll=[]
	    for(let i in nameObj){
	    	dataAll.push(nameObj[i])
	    }
	    let option4 = {
	        // 工具箱
	        toolbox: {
	            // 显示工具箱
	            show: true,
	            feature: {
	                mark: {
	                    show: true
	                },
	                // 还原
	                restore: {
	                    show: true
	                },
	                // 保存为图片
	                saveAsImage: {
	                    show: true
	                }
	            }
	        },
	        series: [{
	            type: 'graph', // 类型:关系图
	            layout: 'force', //图的布局，类型为力导图
	            symbolSize: 40, // 调整节点的大小
	            roam: true, // 是否开启鼠标缩放和平移漫游。默认不开启。如果只想要开启缩放或者平移,可以设置成 'scale' 或者 'move'。设置成 true 为都开启
	            edgeSymbol: ['circle', 'arrow'],
	            edgeSymbolSize: [2, 10],
	            focusNodeAdjacency:true,
	            edgeLabel: {
	                normal: {
	                    textStyle: {
	                        fontSize: 20
	                    }
	                }
	            },
	            force: {
	                repulsion: 2500,
	                edgeLength: [10, 50]
	            },
	            draggable: false,
	            cursor:"pointer", 
	            lineStyle: {
	                normal: {
	                    width: 2,
	                    color: '#4b565b',
	                }
	            },
	            label: {
	                normal: {
	                    show: true,
	                    textStyle: {}
	                }
	            },
	 
	            // 数据
	            data: dataAll,
	            links: links,
	            categories: categories,
	        }],
	    };
	    console.log(option4)
	    iChart4.setOption(option4)
		
		/* sdgd('${stockInfo.gudong}');*/
		loadNews(1);
		loadNotice(1);
		loadReport(1,null);
		loadStockChange();
		jqGridzcfx('${StockFinancial.cwzy_json}');
		mgzb_tables('${StockFinancial.mgzb_json}');
		
		/* $.ajax({
			url : "${pageContext.request.contextPath}/stock/getFinancial",
			type : "post",
			data : {
				code:"${code}"
			},
			success : function(res) {
				if (res.status == 200) {
					jqGridzcfx(res.data);
				} else {
				}
			},
			error : function(e) {
			}
		});  */
		
		$.ajax({
			url : "${pageContext.request.contextPath}/stock/getKeyDatas",
			type : "post",
			data : {
				code:"${code}"
			},
			success : function(data) {
				var res = JSON.parse(data);
				var rev = res.stockRevenue;
				var revL = JSON.parse(rev);
				if(!(!revL.data)&&(revL.data).length != 0){
					stockRevenue(res.stockRevenue);
				}else{
					$('#yysrjzs').css('display','none');
				}
				var ear = res.stockEarning;
				var earL = JSON.parse(ear);
				if(!(!earL.data) &&(earL.data).length != 0){
					stockEarning(res.stockEarning);
				}else{
					$('#lnsrjg').css('display','none');
				}
				var net = res.stockNetProfit;
				var netL = JSON.parse(net);
				if(!(!netL.data) && (netL.data).length != 0){
					stockNetProfit(res.stockNetProfit);
				}else{
					$('#stockNetProfit').css('display','none');
				}
				var rese = res.stockResearch;
				var reseL = JSON.parse(rese);
				if(!(!reseL.data) &&(reseL.data).length != 0){
					stockResearch(res.stockResearch);
				}else{
					$('#stockResearch').css('display','none');
				}
				
			},
			error : function(e) {
			}
		}); 
		
	});
	
	function persons(id){
		var res_name='';
		$.ajax({
			url:'${pageContext.request.contextPath}/stock/persons',
			type:'GET',
			async:false,
			data:{
				id:id
			},
			success:function(res){
				if(res.data.length != 0){
					res_name=res.data[0].name;
				}
			},
			error:function(err){
				console.log(err);
			}
		})
		return res_name;
	}
	
	
	sdgd();
	function sdgd(){
		var company_id='${company_id}';
		$.ajax({
			url:'${pageContext.request.contextPath}/stock/sdgd',
			type:'GET',
			data:{
				company_id:company_id
			},
			success:function(res){
				if(res.code==200){
					var list=res.data;
					var html='';
					if(list.length != 0){
						$('#sdgd').html('');
						html='';
						for(var i = 0;i < list.length;i++){
							var type=list[i].shareholder_type;
							if(type==1){
								type='自然人';
							}if(type==2){
								type='机构';
							}
							var per_name=list[i].shareholder_id;
							var name=persons(per_name);
							
							if(name == null || name == ''){
								name=per_name;
							}
							html += '<tr>'+
										'<td>'+name+'</td>'+
										'<td>'+type+'</td>'+
										'<td>'+list[i].shares+'</td>'+
										'<td>'+list[i].percentage+'%'+'</td>'+
										'<td>'+list[i].share_change+'</td>'+
										'<td>'+list[i].share_changeRatio+'</td>'+
									'</tr>';
						}
						$('#sdgd').html(html);
					}
				}
			},
			error:function(err){
				console.log(err);
			}
		})
	}
	
	
	
	
	function loadStockChange(){
		$.ajax({
			url : "${pageContext.request.contextPath}/stock/getStockJson",
			type : "post",
			data : {
				code:"${code}"
			},
			success : function(data) {
				if(!(!data) || data.replace(/(^s*)|(s*$)/g, "").length != 0){
				stockChange(data)
				}else{
					$("#stockChange").attr("style","display:none")
				}
			},
			
		});
	}
	
	function cwzy(){
		jqGridzcfx('${StockFinancial.cwzy_json}');
	}
	function zcfz(){
		zcfz_tables('${StockFinancial.zcfz_json}');
	}
	function lrb(){
		lr_tables('${StockFinancial.lr_json}')
	}
	function xjlb(){
		xjll_tables('${StockFinancial.xjll_json}')
	}
	function zygcb(){
		zygc_tables('${StockFinancial.zygc_json}')
	}
	function mgzb(){
		mgzb_tables('${StockFinancial.mgzb_json}')
	}    
	function ylnl(){
		ylnl_tables('${StockFinancial.ylnl_json}')
	}    
	function zjjg(){
		zjjg_tables('${StockFinancial.zjjg_json}')
	}    
	function yynl(){
		yynl_tables('${StockFinancial.yynl_json}')
	}    
	function cznl(){
		cznl_tables('${StockFinancial.cznl_json}')
	}    
	function zb_xjll(){
		zb_xjll_tables('${StockFinancial.zb_xjll_json}')
	} 
	function cwbb(){
		cwbb_tables('${StockFinancial.cwbb_json}')
	}
	//资讯
	function loadNews(pagenum){
		$.ajax({
			url : "${pageContext.request.contextPath}/stock/getStockNews",
			type : "post",
			data : {
				code:"${code}",
				pageNum:pagenum
			},
			success : function(res) {
				if (res.status == 200) {
					var list = res.data.list;
					var totalData = res.data.total;
					var totalPage = res.data.pages;
					if(pagenum == 1){
						paging(totalData,totalPage,pagenum,1)
					}
					var html=""
					var plate_code = '${plate_code}'
						if(!(!plate_code)){
							plate_code = "&plate_code="+plate_code
						}else{
							plate_code = ''
						}
					for(var i=0;i<list.length;i++){
						var content = list[i].content.substring(0,200)
						var flag = ''
						var image = '' 
						if(list[i].emotiontype == 1){
							flag = "<span class='label' style='float: right; margin-right: 10px; color:white; margin-top: -1px; background-color: #ea4410;'>重大利好</span>"
						}else if(list[i].emotiontype == 2){
							flag = "<span class='label' style='float: right; margin-right: 10px; color:white; margin-top: -1px; background-color: #ff9800;'>利好</span>"
						}else if(list[i].emotiontype == 3){
							flag = "<span class='label' style='float: right; margin-right: 10px; color:white; margin-top: -1px; background-color: #c5d106;'>中性</span>"
						}else if(list[i].emotiontype == 4){
							flag = "<span class='label' style='float: right; margin-right: 10px; color:white; margin-top: -1px; background-color: #4cba2a;'>利空</span>"
						}else if(list[i].emotiontype == 5){
							flag = "<span class='label' style='float: right; margin-right: 10px; color:white; margin-top: -1px; background-color: #2a8e29;'>重大利空</span>"
						}
						
						if(list[i].picC == 1){
							image = "<img alt='' src='${pageContext.request.contextPath}/"+list[i].picUrl+"' style=' width: 110%;height: 9em; vertical-align:middle;'>"
						}else{
							image = "<img alt='' src='"+list[i].picUrl+"' style=' width: 100%; height: 9em; vertical-align:middle;'>"
						}
						html += "<li style='height:125px;'><div class='col-md-2'>"
								+image
				              	+"</div><div ></div><div class='col-md-10' ><div class='search-result'>"
				           		+"<h3><a href='${pageContext.request.contextPath}/optional/articledetail?seed_id=${seed_id}&articleId="+list[i].id +"&code=${code}"+plate_code+"' >"
				        		+list[i].Title+"</a>"
				       			+flag
				                +"</h3><p></p><p>"
								+content
								+"...</p><p style='margin-top: 1.8em;'><span>来源:"
								+list[i].medianame 
								+"</span><span style='float: right; margin-right: 20px;'>时间:"+formatUnixtimestamp(list[i].Date)
								+"</span></p></div></div></li>"
				              +"<div class='hr-line-dashed'></div>"
					}
					/* html += "<div class='box' id='logsbox' style='float: right;''></div>"; */
					$("#stockNwes").html(html);
				} else {
				}
			},
			error : function(e) {
			}
		});
	}
	
	//公告
	function loadNotice(pagenum){
		$.ajax({
			url : "${pageContext.request.contextPath}/stock/getNotice",
			type : "post",
			data : {
				code:"${code}",
				pageNum:pagenum
			},
			success : function(res) {
				if (res.status == 200) {
					var totalData = res.data.total;
					var totalPage = res.data.pages;
					if(pagenum == 1){
						paging(totalData,totalPage,pagenum,2)
					}
					var list = res.data.list;
					var pageNum = res.data.pageNum;
					var htmlStr=""
					var xh = 1;
					var plate_code = '${plate_code}'
						if(!(!plate_code)){
							plate_code = "&plate_code="+plate_code
						}else{
							plate_code = ''
						}
					for(var i=0;i<list.length;i++){
						var date = formatUnixtimestamp(list[i].date).substring(0,10);
						htmlStr += "<tr>" +
                            "<td style='width: 5%'>"+ xh +"</td>" +
                            "<td style='width: 10%'>"+ date +"</td>" +
                            "<td><a href='${pageContext.request.contextPath}/informationList/detialsPdf?id="+ list[i].id+"&seed_id=${seed_id}&type=2&code=${code}&simplename=${simplename}"+plate_code+"'>"+ list[i].title +"</a></td>" +
                            "<td> <a href='${pageContext.request.contextPath}/informationList/todownload?id="+ list[i].id+"&type=2' title='下载' ><i class='fa fa-file-pdf-o'></i></a> </td>" +
                        "</tr>";
						xh ++;
					}
					$("#stockNotices").html(htmlStr);
				} else {
				}
			},
			error : function(e) {
			}
		}); 
	}
	
	//研报
	function loadReport(pagenum,rtype){
		$.ajax({
			url : "${pageContext.request.contextPath}/stock/getResearchReport",
			type : "post",
			data : {
				code:"${code}",
				pageNum:pagenum,
				rtype:rtype
			},
			success : function(res) {
					res = JSON.parse(res);
					var totalData = res.reportlist.total;
					var totalPage = res.reportlist.pages;
					var pageNum = res.reportlist.pageNum;
					if(pageNum == 1){
						paging(totalData,totalPage,pageNum,3)
					}
					var rtypeslist = res.rtypes;
					var list = res.reportlist.list;
					var pagenum = list.pageNum;
					var rtype = res.rtype1;
					var org = res.org;
					var rate = res.rate;
					var page = res.page;
					var optionHead = "<option value=''>全部研报类型</option>";
					var optionHtml = "";
					for (var k = 0; k < rtypeslist.length; k++) {
						if(rtypeslist[k].rtype == rtype){
							optionHtml +="<option value='"+rtypeslist[k].rtype+"' selected='selected'>"+rtypeslist[k].rtype+"("+rtypeslist[k].num+")</option>";
						}else{
							optionHtml +="<option value='"+rtypeslist[k].rtype+"'>"+rtypeslist[k].rtype+"("+rtypeslist[k].num+")</option>";
						}
					}
					if(org != '' && org != null){
					}else{
						$("#fbjg").css("display","none");
					}
					if(rate != '' && rate != null){
					}else{
						$("#pj").css("display","none");
					}
					if(page != '' && page != null){
					}else{
						$("#ys").css("display","none");
					}
					$("#rtypeflag").html(optionHead + optionHtml);
					
					var htmlStr=""
					var xh = 1;
					var plate_code = '${plate_code}'
					if(!(!plate_code)){
						plate_code = "&plate_code="+plate_code
					}else{
						plate_code = ''
					}
					console.log()
					for(var i=0;i<list.length;i++){
						//var date = formatUnixtimestamp(list[i].publish_time).substring(0,10);
						if(org != '' && org != null){
    						var orgHtml = "<td>"+list[i].org+"</td>";
    					}else{
    						var orgHtml = "";
    					}
    					if(rate != '' && rate != null){
    						var rateHtml = "<td>"+list[i].rate+"</td>";
    					}else{
    						var rateHtml ="";
    					}
    					if(page != '' && page != null){
    						var pageHtml = "<td>"+list[i].pagenum+"</td>";
    					}else{
    						var pageHtml ="";
    					}
						htmlStr += "<tr>" +
                            "<td style='width: 5%'>"+ xh +"</td>" +
                            "<td style='width: 10%'>"+ list[i].publish_time +"</td>" +
                            "<td><a href='${pageContext.request.contextPath}/informationList/detialsPdf?id="+ list[i].id+"&seed_id=${seed_id}&type=3&code=${code}&simplename=${simplename}"+plate_code+"'>"+ list[i].title +"</a></td>" +
                            "<td style='text-align: center;'>"+list[i].rtype+"</td>" + 
                            orgHtml + rateHtml + pageHtml + 
                            "<td> <a href='${pageContext.request.contextPath}/informationList/todownload?id="+ list[i].id+"&type=3' title='下载' ><i class='fa fa-file-pdf-o'></i></a> </td>" +
                        "</tr>";
						xh ++;
					}
					$("#stockReports").html(htmlStr);
			},
			error : function(e) {
			}
		});
	}

	function formatUnixtimestamp (inputTime){
		var date = new Date(inputTime);
	    var y = date.getFullYear();  
	    var m = date.getMonth() + 1;  
	    m = m < 10 ? ('0' + m) : m;  
	    var d = date.getDate();  
	    d = d < 10 ? ('0' + d) : d;  
	    var h = date.getHours();
	    h = h < 10 ? ('0' + h) : h;
	    var minute = date.getMinutes();
	    var second = date.getSeconds();
	    minute = minute < 10 ? ('0' + minute) : minute;  
	    second = second < 10 ? ('0' + second) : second; 
	    return y + '-' + m + '-' + d+' '+h+':'+minute+':'+second;  

 	}
	
	$("#rtypeflag").change(function(){
     //要触发的事件
		var rtype = $('#rtypeflag option:selected').val();
		loadReport(1,rtype);
    });
	
	/* 分页 */
	function paging(totalData,totalPage,pagenum,type){
		if(type == 1){
			var ids = "."+"box1";
		}else if(type == 2){
			var ids = "."+"box2";
		}else if(type == 3){
			var ids = "."+"box3";
		}
	    $(ids).paging({
	        initPageNo: pagenum, // 初始页码
	        totalPages: totalPage, //总页数
	        totalCount: '合计' + totalData + '条数据', // 条目总数
	        slideSpeed: 600, // 缓动速度 单位毫秒
	        jump: true, //是否支持跳转
	        callback: function(page) { 
	            // 回调函数
	         }
	    });
	}
	
	function JumpToPage(pagenum,pagetype){
		if(pagetype == "b1"){
			loadNews(pagenum);
		}else if(pagetype == "b2"){
			loadNotice(pagenum);
		}else if(pagetype == "b3"){
			var rtype = $('#rtypeflag option:selected').val();
			loadReport(pagenum,rtype);
		}
		
	}
	
	//跑马灯方法 
	function init(){
	    //获取标题
	    var title=document.title;
	    //分割字符串--->字符数组
	    var arr=title.split("");
	    //删除第一个元素并返回该元素
	    var e=arr.shift();
	    //把一个对象添加到数组末尾
	    arr.push(e);
	    //把数组转换成字符串
	    var marquee=arr.join("");
	    //返回给浏览器
	    document.title=marquee;
	    //定时一直执行
	    window.setTimeout("init()",1000);
	}
	window.onload=init;
	
	
	var upColor = '#00da3c';
	var downColor = '#ec0000';


	function splitData(rawData) {
	    var categoryData = [];
	    var values = [];
	    var volumes = [];
	    for (var i = 0; i < rawData.length; i++) {
	        categoryData.push(rawData[i].splice(0, 1)[0]);
	        values.push(rawData[i]);
	        volumes.push([i, rawData[i][1], rawData[i][0] > rawData[i][0] ? 1 : -1]);
	    }

	    return {
	        categoryData: categoryData,
	        values: values,
	        volumes: volumes
	    };
	}

	function calculateMA(dayCount, data) {
	    var result = [];
	    for (var i = 0, len = data.values.length; i < len; i++) {
	        if (i < dayCount) {
	            result.push('-');
	            continue;
	        }
	        var sum = 0;
	        for (var j = 0; j < dayCount; j++) {
	            sum += data.values[i - j][0];
	        }
	        result.push((sum / dayCount).toFixed(2));
	    }
	    return result;
	}

	function stockChange(rawData) {
		var myChart = echarts.init(document.getElementById('stockChange'));
		var raw = split(rawData);
	    var data = splitData(raw);
	    
	    myChart.setOption(option = {
	        backgroundColor: '#fff',
	        animation: true,
	        legend: {
	            bottom: 10,
	            left: 'center',
	            data: [ '股价']
	        },
	        tooltip: {
	            trigger: 'axis',
	            axisPointer: {
	                type: 'cross'
	            },
	            backgroundColor: 'rgba(245, 245, 245, 0.8)',
	            borderWidth: 1,
	            borderColor: '#ccc',
	            padding: 10,
	            textStyle: {
	                color: '#000'
	            },
	            position: function (pos, params, el, elRect, size) {
	                var obj = {top: 10};
	                obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 30;
	                return obj;
	            }
	            // extraCssText: 'width: 170px'
	        },
	        axisPointer: {
	            link: {xAxisIndex: 'all'},
	            label: {
	                backgroundColor: '#777'
	            }
	        },
	        toolbox: {
	            feature: {
	                dataZoom: {
	                    yAxisIndex: false
	                },
	                brush: {
	                    type: ['lineX', 'clear']
	                }
	            }
	        },
	        brush: {
	            xAxisIndex: 'all',
	            brushLink: 'all',
	            outOfBrush: {
	                colorAlpha: 0.1
	            }
	        },
	        visualMap: {
	            show: false,
	            seriesIndex: 1,
	            dimension: 2,
	            pieces: [{
	                value: -1,
	                color: downColor
	            }, {
	                value: 1,
	                color: upColor
	            }]
	        },
	        grid: [
	            {
	                left: '10%',
	                right: '8%',
	                height: '40%'
	            },
	            {
	                left: '10%',
	                right: '8%',
	                top: '70%',
	                height: '16%'
	            }
	        ],
	        xAxis: [
	            {
	                type: 'category',
	                data: data.categoryData,
	                scale: true,
	                boundaryGap : false,
	                axisLine: {onZero: false},
	                splitLine: {show: false},
	                splitNumber: 20,
	                min: 'dataMin',
	                max: 'dataMax',
	                axisPointer: {
	                    z: 100
	                }
	            },
	            {
	                type: 'category',
	                gridIndex: 1,
	                data: data.categoryData,
	                scale: true,
	                boundaryGap : false,
	                axisLine: {onZero: false},
	                axisTick: {show: false},
	                splitLine: {show: false},
	                axisLabel: {show: false},
	                splitNumber: 20,
	                min: 'dataMin',
	                max: 'dataMax'
	                // axisPointer: {
	                //     label: {
	                //         formatter: function (params) {
	                //             var seriesValue = (params.seriesData[0] || {}).value;
	                //             return params.value
	                //             + (seriesValue != null
	                //                 ? '\n' + echarts.format.addCommas(seriesValue)
	                //                 : ''
	                //             );
	                //         }
	                //     }
	                // }
	            }
	        ],
	        yAxis: [
	            {
	                scale: true,
	                splitArea: {
	                    show: true
	                }
	            },
	            {
	                scale: true,
	                gridIndex: 1,
	                splitNumber: 2,
	                axisLabel: {show: false},
	                axisLine: {show: false},
	                axisTick: {show: false},
	                splitLine: {show: false}
	            }
	        ],
	        dataZoom: [
	            {
	                type: 'inside',
	                xAxisIndex: [0, 1],
	                start: 98,
	                end: 100
	            },
	            {
	                show: true,
	                xAxisIndex: [0, 1],
	                type: 'slider',
	                top: '90%',
	                start: 98,
	                end: 100
	            }
	        ],
	        series: [
	            {
	                name: '股价',
	                type: 'line',
	                data: calculateMA(1, data),
	                smooth: true,
	                lineStyle: {
	                    normal: {opacity: 0.5}
	                }
	            },
	            {
	                name: '情感',
	                type: 'bar',
	                xAxisIndex: 1,
	                yAxisIndex: 1,
	                data: data.volumes
	            }
	        ]
	    }, true);

	    // myChart.on('brushSelected', renderBrushed);

	    // function renderBrushed(params) {
	    //     var sum = 0;
	    //     var min = Infinity;
	    //     var max = -Infinity;
	    //     var countBySeries = [];
	    //     var brushComponent = params.brushComponents[0];

	    //     var rawIndices = brushComponent.series[0].rawIndices;
	    //     for (var i = 0; i < rawIndices.length; i++) {
	    //         var val = data.values[rawIndices[i]][1];
	    //         sum += val;
	    //         min = Math.min(val, min);
	    //         max = Math.max(val, max);
	    //     }

	    //     panel.innerHTML = [
	    //         '<h3>STATISTICS:</h3>',
	    //         'SUM of open: ' + (sum / rawIndices.length).toFixed(4) + '<br>',
	    //         'MIN of open: ' + min.toFixed(4) + '<br>',
	    //         'MAX of open: ' + max.toFixed(4) + '<br>'
	    //     ].join(' ');
	    // }

	    myChart.dispatchAction({
	        type: 'brush',
	        areas: [
	            {
	                brushType: 'lineX',
	                coordRange: [80, 100],
	                xAxisIndex: 0
	            }
	        ]
	    });
	}
	
	function split(rawData) {
		var k1 = rawData.substring(2,rawData.length-2).split("],[")
		var k2 =[]
		for(var i =0;i<k1.length;i++){
			k2.push(k1[i].split(","));
			
		}
	return k2;
	}
	
</script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/detail_info.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/market_info.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/market_analyze.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/finance_analyze.js"></script>
</html>
